System Design
12. Reliability and Fault ToleranceAnimated
Retry Strategies
Policies for repeating failed work.
The idea
Fixed, exponential and jittered retries with limits and budgets.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
Attempt 1 fails. Wait 1s plus up to 1s random jitter, then retry.
- attempt:
- 1
- next wait:
- 1
1/6
Exponential backoff spaces retries out; jitter stops every client retrying at the same moment.
Step by step
- 1Classify errors
- 2Retry transient ones
- 3Back off with jitter
- 4Respect a retry budget
Where it is used
Remote calls.
Watch out for
Retries multiplied across layers amplify load.