Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_lambda-vs-kappa

Lambda vs Kappa Architecture (Dual-Path vs Single Replayable Stream)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Lambda vs Kappa Architecture (Dual-Path vs Single Replayable Stream) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_lambda-vs-kappa/opengraph-image)](https://archos.sageideas.dev/d/dgm_lambda-vs-kappa)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_lambda-vs-kappa)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_lambda-vs-kappa" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Lambda vs Kappa Architecture (Dual-Path vs Single Replayable Stream) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Event Producers"]
  n1_1[("Immutable Event Log")]
  n2a_2["Single Stream Engine"]
  n2b_3["Dual Batch Layer"]
  n3_4[("Unified Serving View")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Append log · Kafka"| n1_1
  n1_1 -->|"2a. Run · Stream"| n2a_2
  n1_1 -.->|"2b. Reconcile · Spark"| n2b_3
  n2a_2 -->|"3a. Serve view · SQL"| n3_4
  n2b_3 -->|"3b. Verify · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Event ProducersSTATELESS
    Real-time + historical compute
  • Immutable Event LogSTATEFUL
    Kafka/Iceberg long retention
  • Single Stream EngineSTATELESS
    Kappa: Flink live + replay
  • Dual Batch LayerSTATELESS
    Lambda: Spark reconcile view
  • Unified Serving ViewSTATEFUL
    Versioned table / OLAP swap
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Event Producers → Immutable Event Log (Append log)[Kafka]
  2. Immutable Event Log → Single Stream Engine (Run)[Stream]
  3. Immutable Event Log → Dual Batch Layer (Reconcile)[Spark]
  4. Single Stream Engine → Unified Serving View (Serve view)[SQL]
  5. Dual Batch Layer → Unified Serving View (Verify)[Control]
  6. Unified Serving View → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →