Mission
Interactive Simulation
Before we explain anything — play. Push it until it breaks, then fix it.
Producers & consumers
Queue
Break it
What just happened?
A queue buffered the spike so producers stayed fast while consumers worked through the backlog asynchronously.
The concept
A message queue decouples producers from consumers. Producers enqueue work and return immediately; consumers process at their own pace. This absorbs spikes, smooths load, and enables asynchronous processing. Queue depth grows when producer rate exceeds consumer rate.
Trade-offs
Nothing is free. Here's what this solution costs you.
In the real world
Conceptually similar to Kafka-like logs and SQS-like queues.
Mini quiz
Queue depth grows when…
Interview me
The app becomes your interviewer. One question, in your own words.
Boss challenge
Drain the backlog
1M jobs are queued and every consumer just crashed.
Goal: Start the boss scenario, recover consumers, and drain the backlog under 1K before the queue overflows.
Use the simulator above with no hints. These checks update live as you play.
Interview question
“Explain backpressure, at-least-once delivery, idempotency, and dead-letter queues.”