Why is jitter important in retry backoff?
IntermediateConceptRelease Engineering & Reliability Patterns
Answer
Without jitter, all clients that failed at the same moment retry at the same moments (1s, 2s, 4s), creating synchronized waves that keep hammering a recovering service: the thundering herd. Jitter randomizes the wait so retries spread out. "Full jitter" picks a random delay between 0 and the exponential cap:
import random
def backoff(attempt, base=0.1, cap=5.0):
return random.uniform(0, min(cap, base * 2 ** attempt))
More on Release Engineering & Reliability Patterns
Why are releases the biggest source of incidents, and what does SRE do about it?BeginnerWhat is a canary release?BeginnerWhat is progressive delivery?IntermediateShow an Argo Rollouts canary with a Prometheus analysis.AdvancedBlue-green vs canary: when do you choose each?IntermediateWhat are feature flags and how do they improve reliability?Beginner