Code RoomReal-time streaming aggregation
HardPrep Room Coding #3144

Real-time streaming aggregation

System designDistributed systemsSenior–Staff~50 min

Design a real-time streaming-aggregation system that computes per-minute and per-hour metrics (request counts, p99 latency, error rates) from a 3M-events/sec ingestion firehose, powering live dashboards and alerting. Requirements: aggregates update within a few seconds, events can arrive seconds-to-minutes late or out of order, results must be correct (not double-counted) across worker restarts, and the system must handle a sudden 5x traffic spike. Walk through windowing, lateness, and correctness.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.