I've been researching DDD pattern for a few weeks ago and I got no answer for a question.
Following Eric Evans principles, the Domain module should have no dependencies with other modules, packages or anything. And here should be included all the models such as errors, entities, interfaces...
My question is, if for example, an error template is shared between all the microservices, should be repeated the same object on each microservice?
I think this gives an awesome modularity on the project because it have no external dependencies but the scalability is poor because on any change it is mandatory to change every microservice.
Have you got any thinking about this? Thanks.
Aucun commentaire:
Enregistrer un commentaire