Domain Driven Design Services
There are books and online resources available.
Domain driven design services. Services are first class citizens of the domain model. This question is about domain driven design. The reason is that the most of business logic is included in aggregates entities and value objects.
Take note of a layer of services which is much thinner than his equivalent in an anemic model. Domain driven design ddd advocates modeling based on the reality of business as relevant to your use cases. Vaughn vernon provided some very valuable insight into the differences between application services and domain services as well as emphasizing the hexagonal architectural style.
In the first post i showed the pgs ddd domain and pgs ddd data assemblies which we. It describes independent problem areas as bounded contexts each bounded context correlates to a microservice and emphasizes a common language to talk about. As a result there is.
Rich model and thin services. It was a thursday. When concepts of the model would distort any entity or value object a service is appropriate.
The entity value object aggregate services factory and repository are the building blocks also known as the tactical approach to domain driven design toward its full realization. Domain driven design advocates modeling based on the reality of business as relevant to our use cases. Previously i introduced you to a set of libraries which can be used to create an application with domain driven design and cqrs event sourcing.
The term service is overloaded and its meaning takes on different shades depending on the context. Domain driven design part 2 application services and domain services. Common architecture with domain driven design model is presented on the right side of the picture.