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.
More on Data formats, HTTP & REST APIs
How do you read and write JSON, and what are the common gotchas?BeginnerWhy must you use `yaml.safe_load` rather than `yaml.load`?BeginnerHow do you load a multi-document Kubernetes YAML file?IntermediateHow do you read and write CSV files properly?BeginnerHow do you make an HTTP request with `requests` the right way?BeginnerWhy use a `requests.Session`?Intermediate