Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-workflow-engine

Durable Workflow Engine (Temporal) Internals (Event History & Replay)

7 COMPONENTS · 7 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Durable Workflow Engine (Temporal) Internals (Event History & Replay) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-workflow-engine/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-workflow-engine)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-workflow-engine)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-workflow-engine" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Durable Workflow Engine (Temporal) Internals (Event History & Replay) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["API Caller"]
  fe_1["Frontend Gateway"]
  hist_2[("History Service Shards")]
  mat_3[("Matching Task Queues")]
  db_4[("Persistence")]
  wkr_5["App Worker Fleet"]
  downstream_6["Downstream & OTel"]
  client_0 -->|"1. StartWorkf · gRPC"| fe_1
  fe_1 -->|"2. Create · gRPC"| hist_2
  hist_2 -->|"3a. Persist · SQL"| db_4
  hist_2 -.->|"3b. Enqueue · gRPC"| mat_3
  wkr_5 -->|"Long-poll · gRPC"| mat_3
  wkr_5 -->|"Complete · gRPC"| hist_2
  mat_3 -.->|"4. Emit / · OTLP/API"| downstream_6

COMPONENT STACK (7)

  • API CallerSTATELESS
    StartWorkflow
  • Frontend GatewaySTATELESS
    Routes by Namespace + WorkflowID
  • History Service ShardsSTATEFUL
    Event-sourced state machine
  • Matching Task QueuesSTATEFUL
    Durable workflow & activity queues
  • PersistenceSTATEFUL
    Append-only execution event log
  • App Worker FleetSTATELESS
    Polls queues, replays & runs I/O
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (7)

  1. API Caller → Frontend Gateway (StartWorkf)[gRPC]
  2. Frontend Gateway → History Service Shards (Create)[gRPC]
  3. History Service Shards → Persistence (Persist)[SQL]
  4. History Service Shards → Matching Task Queues (Enqueue)[gRPC]
  5. App Worker Fleet → Matching Task Queues (Long-poll)[gRPC]
  6. App Worker Fleet → History Service Shards (Complete)[gRPC]
  7. Matching Task Queues → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →