Building blocks
Bounded context
Bounded context
An explicit boundary within which a domain model and its language are consistent. Each
service typically maps to one bounded context.
Aggregate
Aggregate
A cluster of domain objects treated as a single unit for changes. The aggregate root
enforces invariants and is the only entry point for modifications.
Entity & Value Object
Entity & Value Object
Entities have identity that persists over time; value objects are defined entirely by
their attributes and are immutable.
Domain event
Domain event
A record of something meaningful that happened in the domain, used to communicate change
within and across services.
Repository
Repository
Provides collection-like access to aggregates, hiding the persistence mechanism from the
domain.