Back pressure
Putting a limit on the queue size. When it's full, new jobs get "server busy" and are retried later.
Example
The queue accepts up to 1,000 jobs. Job 1,001 gets "server busy, try again in a few seconds" instead of waiting forever.
Test yourself: Back pressure
Message queues
With exponential backoff, each retry waits ___ as long as the previous one.
1, 2, 4, 8 seconds: if 1,000 clients get a 503, they don't all retry at once, and the queue has time to drain.
0/1
â–¶ Play