Worked example
Retry waits (ms): 100, 200, 400, 500
Inputs
- Initial retry delay (ms): 100
- Backoff multiplier: 2
- Delay cap (ms): 500
- Retries after the initial attempt: 4
- No jitter (0) or seeded full jitter (1): 0
- Seed (1–2147483646): 1
Retry i uses min(cap, initial × multiplier^(i−1)).
Use the units shown.
Generate capped exponential delays. With full jitter, advance seed = seed × 16807 mod 2147483647 and take floor(floor(delay) × seed / 2147483647).
Cumulative sum of waits, measured from the initial attempt; listed times round to six decimals.
Sum the unrounded waits; no execution or response time is included.
Retry i uses min(cap, initial × multiplier^(i−1)). Optional full jitter chooses whole milliseconds from zero through one less than the capped whole-millisecond bound using a reproducible Park–Miller sequence. Timings exclude request execution. This educational seed is not cryptographic randomness.
AWS: retry and backoff assumptions ↗Retry waits (ms): 100, 200, 400, 500
Retry waits (ms): 50, 100, 100