We use analytics cookies.We use cookies to analyze site traffic and improve your experience.
Loading...
System Design Masterclass · Reliability Resilience
Free preview: the first 2 parts of this 7-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$25 once, by PayPal
See the System Design coursein Reliability Resilience
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
A deploy breaks the checkout service at 02:14 AM. Forty nodes start returning 5xx within the same 10-second window. Without aggregation, that is 40 separate phone calls landing on one engineer's nightstand before they can even read the first alert title.
This is not a hypothetical. AWS's December 2021 us-east-1 outage generated over 100,000 downstream alerts for a single Kinesis failure. PagerDuty's incident management data shows that mass alert storms from deploys are the number one cause of missed acknowledgments because the UI becomes unusable when hundreds of alerts arrive simultaneously.
Alert aggregation collapses related raw events into a single logical incident. One incident means one page. The underlying events stay attached for forensics so nothing is lost. The engineer gets context instead of chaos.
The core idea is simple: take N raw events that share a common cause and present them as 1 incident. The aggregator decides which events belong together using grouping keys, typically service name, region, and alert type.
| Concept | What it does | Example |
|---|---|---|
| Grouping key | Tags that define a bucket | service=checkout, region=us-east-1 |
| Dedupe window | Time range for collapsing repeats | Same check firing 12 times in 5 minutes |
| Logical incident | One bucket = one page | "checkout us-east-1 degraded" |
| Cascading close | Root fix resolves all grouped events | Deploy rollback clears all 40 nodes |
| Event attachment | Raw events preserved inside the incident | Engineer drills into the detail view |
The grouping key is the most important decision. Group too tightly (per host) and you miss the forest. Group too loosely (per team) and unrelated incidents merge into one confusing mega-alert. Most teams start with service plus region, then refine.
PagerDuty's Event Intelligence learns grouping keys from historical patterns using machine learning. Most teams start with hand-written rules on tags because the logic is transparent and auditable. Either approach works as long as the result is one page per actual problem.