Wrap-Up

We’ve examined how crucial it is to follow the Aggregate Rules of Thumb when designing Aggregates.

• You experienced the negative consequences of modeling large-cluster Aggregates.

• You learned to model true invariants in consistency boundaries.

• You considered the advantages of designing small Aggregates.

• You now know why you should favor referencing other Aggregates by identity.

• You discovered the importance of using eventual consistency outside the Aggregate boundary.

• You saw various implementation techniques, including how you might use Tell, Don’t Ask and Law of Demeter.

If we adhere to the rules, we’ll have consistency where necessary and support optimally performing and highly scalable systems, all while capturing the ...

Get Implementing Domain-Driven Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.