Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_code-ddd-aggregates-and-boundaries

DDD Aggregates & Bounded Contexts (Transactional Consistency Units)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![DDD Aggregates & Bounded Contexts (Transactional Consistency Units) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_code-ddd-aggregates-and-boundaries/opengraph-image)](https://archos.sageideas.dev/d/dgm_code-ddd-aggregates-and-boundaries)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-ddd-aggregates-and-boundaries)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-ddd-aggregates-and-boundaries" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="DDD Aggregates & Bounded Contexts (Transactional Consistency Units) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Command Handler"]
  n1_1["Aggregate Root"]
  n2a_2["Invariant Guard"]
  n2b_3["Context Map ACL"]
  n3_4[("Domain Event Outbox")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Load root · Version"| n1_1
  n1_1 -->|"2a. Enforce · ACID"| n2a_2
  n1_1 -->|"2b. Translate · ACL"| n2b_3
  n2a_2 -->|"3a. Emit event · Outbox"| n3_4
  n2b_3 -->|"3b. Merge · RAM"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Command HandlerSTATELESS
    Mutate Aggregate by ID
  • Aggregate RootSTATELESS
    Single entry point & version lock
  • Invariant GuardSTATELESS
    Atomic rule check inside 1 TX
  • Context Map ACLSTATELESS
    Anti-Corruption Layer translator
  • Domain Event OutboxSTATEFUL
    Cross-aggregate eventual sync
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Command Handler → Aggregate Root (Load root)[Version]
  2. Aggregate Root → Invariant Guard (Enforce)[ACID]
  3. Aggregate Root → Context Map ACL (Translate)[ACL]
  4. Invariant Guard → Domain Event Outbox (Emit event)[Outbox]
  5. Context Map ACL → Domain Event Outbox (Merge)[RAM]
  6. Domain Event Outbox → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →