Slide 13
Slide 13 text
13
@p_smeets @joaoasrosa
Aggregates
An aggregate:
● Protects business invariance by forming a transactional consistency boundary
● Favors a single traversal direction, as opposed to bidirectional relationships
● Group domain objects so you can refer to the as a single concept
● Is written to / read from persistent storage as a whole through a repository; this can lead to
eventual consistency
The aggregate root:
● Is the gateway into an aggregate
● Is always an entity, without a parent entity
● Must be referred to be ID instead of object reference