Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_saga-platform

Saga & Distributed Transaction Platform (Orchestration & Compensation)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Saga & Distributed Transaction Platform (Orchestration & Compensation) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_saga-platform/opengraph-image)](https://archos.sageideas.dev/d/dgm_saga-platform)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_saga-platform)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_saga-platform" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Saga & Distributed Transaction Platform (Orchestration & Compensation) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Checkout / Booking API"]
  n1_1[("Saga Coordinator")]
  n2a_2["Forward Step Workers"]
  n2b_3["Compensation Engine"]
  n3_4[("Domain Outbox DBs")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Start saga · gRPC"| n1_1
  n1_1 -->|"2a. Exec step · gRPC"| n2a_2
  n1_1 -.->|"2b. Compensate · Async"| n2b_3
  n2a_2 -->|"3a. Commit tx · SQL"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Checkout / Booking APISTATELESS
    Multi-service atomic business tx
  • Saga CoordinatorSTATEFUL
    Durable Temporal/DB log
  • Forward Step WorkersSTATELESS
    Idempotent domain mutations
  • Compensation EngineSTATELESS
    Semantic undo in reverse order
  • Domain Outbox DBsSTATEFUL
    Local ACID + outbox events
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Checkout / Booking API → Saga Coordinator (Start saga)[gRPC]
  2. Saga Coordinator → Forward Step Workers (Exec step)[gRPC]
  3. Saga Coordinator → Compensation Engine (Compensate)[Async]
  4. Forward Step Workers → Domain Outbox DBs (Commit tx)[SQL]
  5. Compensation Engine → Domain Outbox DBs (Apply)[Async]
  6. Domain Outbox DBs → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →