Domain Driven Design Vs Clean Architecture
In this respect my architecture is more conservative than other clean ddd solutions the domain layer should only be concerned with business logic and interaction among domain entities.
Domain driven design vs clean architecture. The book features several parts. I spent a lot of time doing rework writing untestable code trying to invent my own bad abstractions and putting all my business logic into anemic services. By context we mean sub domain department. The application layer is the appropriate place to put persistence interfaces because that is the layer of orchestration and coordination.
He wrote a book about concepts of designing software that is driven by domain problems rather than details. As i already stated clean architecture was the main reason i started this journey. Ddd focus is to understand what the application should do and translate that to code providing a lot of insights on how you should organize the business rules and data models. This is not an architecture but rather a set of advice and principles to consider while creating a system that deals with complex domains.
Domain driven design by eric evans and clear architecture by robert c. Let s see how 2 fabulous architectures approach this problem. Software should be like waffles not. Take note of a layer of services which is much thinner than his equivalent in an anemic model.
The reason is that the most of business logic is included in aggregates entities and value objects. Clean architecture domain driven design. So eric evans makes a clear declaration on the matter. Make the context explicit.
One of the first architects who defined domain driven design principles was eric evans. Domain driven design is hard to differentiate from clean architecture. Before i got into software design and architecture my code was hurting. Common architecture with domain driven design model is presented on the right side of the picture.
Objects are context bound. If you are seriously interested in reading more about clean architecture i kindly recommend uncle bob s book.