System Design
11. Microservices ArchitectureAnimated
Retry Pattern
Try failed calls again.
The idea
Retry transient failures with backoff and a limit.
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
- 1Detect a transient failure
- 2Wait with backoff
- 3Retry
- 4Give up after a limit
Where it is used
Network calls.
Watch out for
Only retry idempotent operations.