Retry backoff needs jitter: 1,000 clients against a limited server, simulated
In our simulation, 1,000 clients retrying against a server that takes 50 requests per tick sent 10,500 requests with plain exponential backoff and about 3,750 to 4,060 with jitter. The code, the results and where they stop applying.
Prakhar
Backend engineer · PressentifyPublished

When a service slows down, its clients retry. When they all retry on the same schedule, they arrive together and slow it down again. Backoff spaces the retries out, and most teams add it. The less well known part is that backoff by itself does not break the crowd apart. We built a small simulation to see how much jitter, the random part of the wait, changes the outcome.
The setup
1,000 clients each need one request to succeed. The server accepts at most 50 requests per 100 ms tick and rejects the rest. Every client starts at tick 0, so 1,000 requests arrive at once and 50 get through. The other 950 must retry. We tried five ways of choosing the wait, averaged over 20 runs with different random seeds. The first wait is 100 ms and the cap is 6.4 s.
BASE, MAXWAIT = 1, 64 # in ticks of 100 ms: 100 ms first wait, 6.4 s cap
exp = min(MAXWAIT, BASE * 2 ** attempt)
none : wait = 1 # retry on the next tick
exp : wait = exp # exponential, no jitter
full : wait = uniform(0, exp)
equal : wait = exp / 2 + uniform(0, exp / 2)
decorr : wait = min(MAXWAIT, uniform(BASE, prev * 3)); prev = waitThe last three are the strategies compared in Marc Brooker’s 2015 AWS Architecture Blog post, “Exponential Backoff and Jitter.” Our model is simpler than his (a fixed capacity per tick, not optimistic concurrency control on a database row), so we do not expect the same numbers. We wanted the shape.
Results
1,000 clients start together, server takes 50 requests per 100 ms; mean of 20 runs
strategy requests peak after t0 done (s)
retry next tick 10500 950 1.9
exp, no jitter 10500 950 95.8
full jitter 4058 715 6.0
equal jitter 3795 488 3.6
decorrelated 3750 510 3.6
Why backoff without jitter did nothing for the load
The two top rows both sent 10,500 requests. That is not a coincidence. Without jitter the clients that failed together wait the same time and return in one block. Each round, 50 get through and everyone else comes back. The total is 1,000 + 950 + 900 + … + 50 = 10,500, whether the gap is 100 ms or several seconds. Exponential backoff did improve one thing: the server saw fewer rounds per second. But it also took 95.8 s to finish, against 1.9 s for retrying at once, because the clients sat out growing waits while the server was idle.
What jitter changed
With a random wait the retries spread across the tick range, so fewer collide and fewer are turned away. Requests fell from 10,500 to between 3,750 and 4,060. The busiest tick after the first also dropped, from 950 requests to 715 with full jitter, and to about 490 to 510 with equal and decorrelated jitter.
| Strategy | Total requests | Busiest tick after the first | Finished |
|---|---|---|---|
| Retry next tick | 10,500 | 950 | 1.9 s |
| Exponential, no jitter | 10,500 | 950 | 95.8 s |
| Full jitter | 4,058 | 715 | 6.0 s |
| Equal jitter | 3,795 | 488 | 3.6 s |
| Decorrelated jitter | 3,750 | 510 | 3.6 s |
Equal and decorrelated jitter did best here. Full jitter, which can pick a wait close to zero, sent about 7% more requests than equal jitter and finished later. Brooker found full and equal jitter close on total calls in his simulation, so treat the ranking among the three as model-dependent. The gap between “some jitter” and “none” is the part that held in both.
Where this simulation stops applying
What to do in practice
- Add jitter to every retry loop, including the ones in SDKs and job queues you did not write. Check their defaults.
- Keep the cap. An unbounded exponential wait looks like an outage from the user’s side.
- Honour
Retry-Afterwhen the server sends it, as the minimum wait, and still add jitter on top. - Limit attempts, and retry only requests that are safe to repeat. A retry of a payment without an idempotency key is a different bug.
- Consider a retry budget (for example, retries may add at most 10% to normal traffic), so that a slow dependency cannot multiply its own load.
Sources & Credits
- Marc Brooker, “Exponential Backoff and Jitter,” AWS Architecture Blog, 4 March 2015: aws.amazon.com
- IETF RFC 9110, “HTTP Semantics,” the Retry-After header field: rfc-editor.org
The simulation, numbers and chart are our own work (Python 3, 20 seeds, run on 17 November 2026). We took the three jitter strategies from the AWS post and wrote the model ourselves, so our numbers are not comparable to the ones published there. Last verified 2026-11-17. Spotted a mistake? Tell us and we will correct it here with the date.
Share this article
Written by
Prakhar
Backend engineer · Pressentify
Backend engineer building Pressentify — interactive cheatsheets, handbooks and a job-hunt workspace.
Get the next one in your inbox
One practical backend article at a time. No spam; unsubscribe in one click.
Keep reading

Consistent hashing, measured: how many keys move when you add a node
Adding an 11th node to a hash(key) % N cluster moved 90.7% of 100,000 keys in our test; a consistent-hash ring moved about 9%. What virtual nodes change, and what they cost.
17 Nov · 4 min

ChainDrop: how the self-propagating npm worm steals tokens and republishes itself
A Shai-Hulud-family worm turns one stolen npm token into poisoned releases of every package that publisher controls. What the advisories say, and what rotation and allowlisting limit.
· 6 min

Prompt caching break-even: it pays on the second request, if you stay inside the cache lifetime
Using the multipliers in Anthropic's prompt caching docs (read on 17 November 2026): a 5-minute cache write costs 1.25x, reads 0.1x or less. The arithmetic shows caching wins from request two, and loses 25% if the cache keeps expiring.
17 Nov · 3 min