Aggregate Root
Explore the concept of aggregate roots as clusters of entities, value objects, and aggregates that coordinate domain logic. Understand how to select an aggregate root based on project context and its importance in managing transactions and functionalities within a domain.
We'll cover the following...
Let us imagine that there are many aggregates in the domain. They have different functionalities, for several use cases. When it is necessary to carry out a particular use case, it will be difficult to choose the access and decide which aggregate should be executed first. Therefore, DDD extends the concept of aggregate and creates a new artifact called an aggregate root.
What is an aggregate root?
Like a normal aggregate, an aggregate root is a cluster of objects with entities, values, or even other aggregates. The main difference between them is that an aggregate root is the main aggregate, while a simple ...