Retry backoff and jitter
Also called: exponential backoff, retry jitter, bounded retries
A retry repeats an operation after a failure that may be temporary. Backoff increases the delay between attempts; jitter varies that delay to stop many clients retrying in lockstep. A retry policy also needs limits on attempts or total time and rules identifying which failures are worth retrying.
A hypothetical client could use increasing delay ceilings of 100, 200 and 400 milliseconds, selecting a random wait within each range. These numbers illustrate the pattern rather than recommended defaults. Retrying overload can make it worse, and repeating an operation with side effects requires an idempotent design or another way to determine whether it already succeeded.
- Read first
- Timeout
- Related
- Timeout, Idempotency key, Idempotency