Interview's MateSystem Design
Interview's Mate

System Design

Architecture & trade-offs

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
All topics/Stream & Batch Processing
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
Practice in AI HLD
Subtopics in Stream & Batch Processing (2)
OverviewWindows & WatermarksLambda vs. Kappa

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
Previous subtopic
Windowing, Watermarks & Backpressure
Back to overview
Full Stream & Batch Processing Lesson