Worked example
Expected attempts: 1.75
Inputs
- Independent failure probability per attempt (%): 50
- Maximum attempts including the first: 3
- Waits before retries (ms; 0 for one attempt): 100,200
Assumes identical independent failures, immediate failure detection and retries only after failure.
Use the units shown.
Add 1 + p + p² through p^(maximum attempts−1), with p the failure fraction.
100 × (1−p^maximum attempts).
Wait before retry i is incurred with probability p^i; sum probability × wait.
Add all configured waits.
Assumes identical independent failures, immediate failure detection and retries only after failure. Waits exclude request execution time. Maximum attempts includes the first request; a retry policy can amplify an overloaded service, so this is only a stated-probability model.
AWS: retry and backoff assumptions ↗Expected attempts: 1.75
Expected attempts: 2