👨‍💻
Software Engineering
Implementing Domain Driven Design
Implementing Domain Driven Design
  • Intro
  • 1. Getting Started with DDD
    • The Business Value of DDD
  • 4: Architecture
  • 5: Entities
    • Why We Use Entities
    • Unique Identity
  • 6: Value Objects
    • Value Object Characteristics
    • Integrate with Minimalism
    • Standard Types Expressed as Values
    • Resources
  • 10: Aggregates
  • 8: Domain Events
    • The When & Why of Domain Events
    • Modeling Events
    • Publishing Events from the Domain Model
  • 13: Factories
  • Resources
Powered by GitBook
On this page
  • Rule: Model True Invariants in Consistency Boundaries
  • Rule: Design Small Aggregates

10: Aggregates

Definition:

A cluster of Entities & Value Objects with a carefully crafted consistency boundary.

Rule: Model True Invariants in Consistency Boundaries

  • An invariant is a business rule that must always be consistent.

  • There are two types of consistency: transactional & eventual.

  • An Aggregate is synonymous with transactional consistency.

Rule: Design Small Aggregates

  • A large cluster limits performance & scalability

  • Performance & scalability are nonfunctional requirements that cannot be ignored.

PreviousResourcesNext8: Domain Events

Last updated 1 year ago