Domain-Driven Design - Aggregates
In Domain-Driven Design an Aggregate is a set of related entities and value objects, for example, in the ordering aggregate, the entities are the buyer, the order, and the order details.
Characteristics
- It is conceptual. (There is no specific file for the Aggregate).
- The Aggregate’s main entity is called Aggregate Root.
- To access the Aggregate’s entities from persistence we use the Repository pattern.