Scalability and Performance · Queues and flow control
Backpressure
When work arrives faster than it can be done, a queue only postpones the failure. Backpressure bounds the queue and pushes the problem back to the producer, which must slow down, retry later or give up.
- Time20 min
- LevelDeveloper
- Experiments1 live
- Check6 questions






Producers send 600 jobs a second; workers can finish 500.
Queue grows by 100 jobs every second, and waits grow with it.
Overflow extra jobs get an instant 503 with Retry-After.
Clients wait as told, then retry with jitter.
Accepted jobs still finish within 4 seconds.
Client backs off and retries as Retry-After says.
Edge or load balancer rejects with 429 or 503 when its queues are full.
API server bounded request queue and concurrency limit.
Workers prefetch only what they can process, drop expired jobs.