I want to consume IS layer in business layer. Can I do it directly or I have to create a intermediary core module. If I already have CRUD operations in IS module then I think we can consume it directly in business layer.
Hello Ajay,
Hope you're doing well.
According to your description, this statement "If I already have CRUD operations in IS module" is incorrect.
Entities and CRUD operations should be inside a CS (Core Services) module. And integrations with external systems should be inside a IS (Integration Services) module.
From an Architecture point of view, there is no problem at all for you to consume a lower layer module from an upper layer module.
But in this particular scenario, BL (Business Layer / Logic) modules usually depend on the CS modules. And your issue seems to be because you have your entities and CRUD actions inside the IS module which is not correct.
Kind regards,
Rui Barradas
Hello Rui,
Thanks for your prompt response.
Hope you are also doing well !
I saw a integration builder video today for MongoDB. I saw CRUD operations and also structures within the IS layer. So this query came to my mind. This module has CRUD as well as structures that represent the document. Now I understand entities will not be there in IS module which is definitely correct. However we can have structures and CRUD.
Hello again Ajay,
When I said CRUD actions, I was referring to the Entity CRUD Actions. The definition of CRUD actions are usually associated to the entities, sorry if I was not clear.
You can learn more about CRUD actions in this amazing article.
But yes, the IS module can (and should) have structures and actions :)
On the other hand, the CS module should have entities and entity crud actions.
Hope that this helps you!