Thundering Herd
PronunciationTHUN-der-ing HERD
Definition
A thundering herd happens when many clients or processes react to the same event at the same instant, for example all retrying after an outage, and overload the system again.
Where you hear it
In outage post-mortems, retry design, cache and scheduler discussions.
Examples
When the service came back, all clients reconnected at once and knocked it down again.
Add random jitter to the retry delay.
All the cached items expired at midnight, and the thundering herd hit the database.
Common mistake
Retrying on a fixed schedule. Everyone retries at the same moments. Use exponential backoff with jitter.
Don't confuse with
A DDoS attack, which is deliberate. A thundering herd is accidental, caused by your own clients.
Say it at work
- In a meeting or chat
We need jitter or we'll get a thundering herd.
- In an email or ticket
Stagger the restarts.
Keep exploring
More in Architecture & Design