What method do you use to identify the Aggregate Roots in Domain Drive Design? -


When you apply a domain driven design to a project, how can you identify the total roots?

For example, in a standard e-commerce website, you can say that the order is one, and the user is another. But what if your users are related to a company? Do your company make the total route?

I am interested in telling people the views of the total roots to work, and how poorly selected total roots are identified.

A good way to identify the total root is to use the "delete" test in your domain If you delete the root, what is removed with it? This way you can identify domain object ownership, which is a symptom of set.

In addition, aggregates form stabilizers, so your root, the objects must be hidden from the rest of the graph and also examine them. Sustainability and invariant that should be in total Holding references Only objects within the root (not in each other), so if you find something like this in your domain model, then it can suggest that you have a total route.


Comments