Tagged articles

Consistency boundary

1 articles · Page 1 of 1
samdeepthink
samdeepthink
Jul 18, 2026 · Fundamentals

Why DDD Insists on a Single Repository per Aggregate

The article explains that in Domain‑Driven Design a Repository should target the aggregate, not individual tables, because the aggregate defines a consistency boundary; having separate repositories for master and detail tables breaks this boundary, allowing inconsistent writes and bypassing the aggregate root’s validation.

Aggregate rootConsistency boundaryDDD
0 likes · 9 min read
Why DDD Insists on a Single Repository per Aggregate