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 · Pressentify

Published

3 min read 741 words
A row of vertical bars: one tall amber bar standing out among many short blue ones, on a baseline.

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 = wait

The 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
Horizontal bar chart of requests sent to finish 1,000 clients: retry next tick 10,500; exponential backoff without jitter 10,500; full jitter 4,058; equal jitter 3,795; decorrelated jitter 3,750.
Backoff without jitter sent exactly as many requests as retrying at once. Any jitter cut that by more than 60% in this model.

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.

StrategyTotal requestsBusiest tick after the firstFinished
Retry next tick10,5009501.9 s
Exponential, no jitter10,50095095.8 s
Full jitter4,0587156.0 s
Equal jitter3,7954883.6 s
Decorrelated jitter3,7505103.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

Real servers queue instead of rejecting outright, have timeouts and connection limits, and see clients that arrive at different times. Our clients also never give up. Use these numbers as a reason to add jitter, not as figures to plan capacity with.

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-After when 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.

Occasional. One-click unsubscribe.