Aggregates in DDD: Model Rules, Not Relationships
In a recent video I did about Domain-Driven Design Misconceptions, there was a comment that turned into a great thread that I want to highlight. Specifically, somebody left a comment about their problem with Aggregates in DDD. Their example: if you have a chat, it has millions of messages. If you have a user, it has millions of friends, etc. It’s impossible to make an aggregate big enough to load into memory and enforce invariants. So the example I’m going to use in this post is the rule: a group chat cannot have more than 100,000 members. The assumption here… Read More »Aggregates in DDD: Model Rules, Not Relationships