Interview Prep/Python for DevOps/Data formats, HTTP & REST APIs

Why add jitter to backoff, and what is "full jitter"?

AdvancedConceptData formats, HTTP & REST APIs
Answer

If 500 workers fail at the same moment and all retry at exactly 1s, 2s, 4s, they hit the recovering service in synchronized waves (thundering herd). Jitter spreads retries out. "Full jitter" sleeps a random time between 0 and the exponential cap: sleep = random.uniform(0, min(cap, base * 2 ** attempt)). AWS's own SDK retry modes use jittered exponential backoff, and tenacity offers wait_random_exponential.

All Python for DevOps questions Roadmap: Python for automation

More on Data formats, HTTP & REST APIs