aggregate

A cluster of related data that is always loaded, changed and saved together as one unit, such as an order with its line items.

In more detail

The idea comes from domain-driven design. A document naturally holds one aggregate, so a document store fits when aggregate ownership is clear. Invariants that span several aggregates need a transaction or a saga.

Related terms

Taught in

References