Cache stampede
Definition
A cache stampede occurs when a popular key expires or is evicted and concurrent requests all recompute or refetch it at the same time.
In practice
A key served from cache 5,000 times per second turns into 5,000 identical database queries the moment it expires, which can slow the database enough that the value never gets cached again. Cold starts after a cache restart produce the same effect across all keys.
Mitigations are request coalescing (one caller recomputes, the rest wait), a short lock per key, refreshing popular keys before they expire, serving stale data while refreshing, and jittered TTLs.
Example
The home page feed expires every 60 seconds; without coalescing, each expiry sends 3,000 concurrent queries to the database and pushes P99 latency from 50 ms to 4 seconds.