DISTRIBUTED SYSTEMS & ARCHITECTURE · SUBTOPIC
Lambda vs. Kappa Architecture
Compare dual batch+speed pipelines (Lambda) against unified stream-only replay (Kappa).
AdvancedPart of Stream & Batch Processing
Subtopics in Stream & Batch Processing (2)
In plain words
Lambda runs two kitchens - a fast microwave for right now (stream) and a slow oven overnight to double-check (batch). Kappa uses one fast kitchen and just rewinds the order tape whenever you want to recompute.
Think of it like…
Maintaining two calculators (Lambda) vs. one streaming ledger you can replay from day 1 (Kappa).
Loading interactive diagram
Loading interactive exercise
Theory & how it works
When each wins
If your transformations can run as a single Flink/Spark Structured Streaming job over a long-retained Kafka log or Iceberg table, Kappa cuts engineering effort in half. If you run giant multi-month ML joins alongside sub-second counters, a Lambda/Lakehouse split stays practical.
Key points & practical guide
Summary checklist
- Lambda = batch + stream merged at read time
- Kappa = single streaming pipeline with historical replay
- Unify logic where possible to avoid drift between batch and live numbers
When to use it
- Designing analytics & real-time telemetry platforms
Watch out for
- Batch and stream pipelines drifting subtly because two teams wrote the formulas differently
Quick check
Loading quiz