Aggregates

Pattern: Aggregates

An Aggregate object is a cluster of entities and value objects that are viewed as a unified whole from the domain concepts and data perspective

An aggregate object has a Root Entity. This root object has all the characteristics of an Entity. It has a unique entity. The aggregate is a complex object that is composed of multiple types of objects as depicted in the illustration.

tactical-patterns

  • Aggregate provides interfaces for operations on Inner objects
  • The aggregate is inserted | updated atomically

Here is an example of an Account Aggregate in the banking domain.

tactical-patterns