Node.js · Senior · Question 35 of 75
Why add random jitter to exponential backoff when retrying failed calls?
- ✓Correct answer: So many clients that failed together don't retry at the same moments and overload the recovering service again
- 2It is required by HTTP
- 3Jitter makes each request faster
Explanation
Without jitter, retries come in synchronized waves (thundering herd). Also cap the number of retries and retry only safe or idempotent operations.