Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 388 Bytes

xd_aggregate_rules_of_thumb.md

File metadata and controls

17 lines (11 loc) · 388 Bytes

Aggregate Rules of Thumb

  1. Protect business invariants inside Aggregate boundaries.
  2. Design small Aggregates.
  3. Reference other Aggregates by identity only.
  4. Update other Aggregates using eventual consistency.

聚合设计四法则

  1. 保护业务不变量。
  2. 聚合尽量小。
  3. 通过标识引用。
  4. 最终一致性。

截取自 Domain-Driven Design Distilled