Backpressure & Queue Accumulation Calculator

A producer, queue, and consumer with mismatched throughput. Predict the backlog and recovery time before you move a slider.

Scenario presets

Rates

Arrival rate (events/s) 100,000
Service rate before change (events/s) 70,000
Duration of mismatch (minutes) 20 min
Service rate after scaling (events/s) 150,000
Producer
Queue / Kafka
Consumer
0 backlog

Queue accumulation: dQ/dt = λ_in − λ_out (not Little's Law)

Backlog growth during a mismatch is simply arrival − service, sustained over the mismatch duration. Recovery time after scaling is backlog ÷ (new service rate − arrival rate) — and if the new service rate barely exceeds arrival, recovery takes far longer than intuition suggests.