Suppose we have the Customer and Order contexts in a monolithic application. When creating the Order I need to verify that the customerId exists, otherwise the system could remain in an inconsistent state.
Would I have to call the Customer application service from the Order service? eg. customerAS.exist(customerId)
Could I call the Customer repository directly from the Order application service ?
CodePudding user response:
Could I call the Customer repository directly from the Order application service ?
The DDD police will not arrest you if you do it