Interview Prep/SRE & Reliability/Release Engineering & Reliability Patterns

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))
All SRE & Reliability questions

More on Release Engineering & Reliability Patterns