← Graph

Aggregate Root

concept 8 connections

Main object defining transaction/consistency boundaries and the public contract for a tree of related objects. In event sourcing, aggregate roots serialize events to the event store and are rehydrated by replaying past events. The talk distinguishes command methods (which validate and apply events) from event callback methods (which mutate state without side effects).

category
pattern
about
Aggregate Root concept
Large portion discusses aggregate roots in event sourcing including command vs event-callback methods.
about
Aggregate Root concept
First implementation uses the aggregate_root gem and the aggregate-root pattern from DDD.
about
Aggregate Root concept
Directly critiques the aggregate-root pattern and its use.
about
Aggregate Root concept
Discussion of why aggregates should not be a code pattern that emits events.
about
Aggregate Root concept
Critique of aggregate root used as an event-emitting code pattern.
about
Aggregate Root concept
Reinforces aggregate as the single write path.
Introduces bank-account and transaction-classification aggregates.
related_to
Aggregate Root concept
Stream belongs to the aggregate that protects invariants.

Provenance

Read by
13 extractions