Pattern 33 / FLOW

Lambda Architecture

Use this when combining accurate batch views with low-latency realtime views.

Pressure
Combining accurate batch views with low-latency realtime views
Mechanism
Run a batch layer for correctness and a speed layer for fresh data, then merge at query time
Toll
Duplicated logic and reconciliation complexity
Architecture plate33
Diagram for Lambda Architecture
Executive brief

Lambda Architecture fits when combining accurate batch views with low-latency realtime views. Mechanism: run a batch layer for correctness and a speed layer for fresh data, then merge at query time. Use it for analytics where historic accuracy and live freshness both matter. The toll: duplicated logic and reconciliation complexity.

Use when

Analytics where historic accuracy and live freshness both matter.

Example

Daily revenue from warehouse plus last-five-minutes stream.

Review framing

Describe the pressure first, then the mechanism, then the cost. That keeps the design grounded.

Same pressure family

Data Processing Patterns

31MapReduce32Stream Processing34Change Data Capture (CDC)
โ† 3234 โ†’