SDSystem DesignConcepts to case studies
System DesignDSA
x
0/311
Part 1: Foundations
Part 2: APIs and Communication
Part 3: Caching
Part 4: Data and Storage
Part 5: Architecture
Part 6: Distributed Systems
Part 7: Advanced Data Topics
Part 8: Operations and Security
  • Three Pillars of Observability
  • Logging Best Practices
  • Log Aggregation
  • Metrics and Instrumentation
  • Distributed Tracing
  • Alerts and Monitoring
  • Dashboards and Runbooks
  • SLOs and Error Budgets
  • Incident Management and Postmortems
  • Profiling
  • Audit Logs
Part 9: Estimation and Interview Method
Part 10: Case Studies
System Design/Operations and Security/Observability

Incident Management and Postmortems

How a team handles an outage: roles, on-call, communication, and learning without blame.

⏱ 13 min readIntermediateInterview FavouriteHas visualizer
SummaryConceptReal-Life ExampleWhy?Where?How It WorksStepsKey TermsPros & ConsMistakesReal WorldRead NextInterview Q&ACheat-Sheet

01Quick Summary

An incident is any event that hurts your users or your service right now. Incident management is the plan for handling it calmly: detect it, organise people, stop the harm, then learn from it in a blameless postmortem.

  • Lifecycle: detect, triage, mitigate, resolve, review.
  • Mitigate first. Roll back, fail over or switch a flag off. Hunt the root cause after users are safe.
  • Roles: one incident commander decides, one person communicates, others investigate and write things down.
  • Postmortem: a written review of the timeline, causes and action items, focused on the system, not on who to blame.

02Concept: What is it?

Every system fails sometimes. What separates a good team from a struggling one is not that they never have incidents, but how quickly and calmly they recover, and whether the same incident happens again. That is why incident handling is treated as a skill, with a process, practised in advance.

The lifecycle

From first alert to lasting fix
πŸ“ŸDetectalert or customer report
→↓
πŸ”ŽTriagehow bad? who is needed?
→↓
🩹Mitigatestop the harm
→↓
βœ…Resolvefully back to normal
→↓
πŸ“Reviewpostmortem and actions
The last step is the one teams skip, and it is the one that prevents the next outage.

Mitigation is not the same as a fix. Mitigation makes the pain stop (roll back the deploy, move traffic to another region, turn off the new feature). The real fix, understanding why it happened, can wait until people are rested and the pressure is off.

🧠Blameless does not mean careless
Blameless means we ask "how did our system let this happen?" instead of "who did this?". People who fear blame hide facts, and the facts are exactly what you need to prevent a repeat.

03Real-Life Example

🍡The Kitchen Fire Drill
A restaurant kitchen catches fire. Good kitchens have a drill. One person is in charge and shouts the plan. Someone calls the fire brigade. Someone tells the guests where to go. Nobody stops to ask what caused it, until the flames are out. Afterwards, the team sits down, with no finger-pointing, to ask why the grease trap was never cleaned and what should change.
Kitchen fire
Production incident
The alarm rings
An alert fires, or customers complain
One person in charge
The incident commander
Someone talks to the guests
The communications lead and the status page
Put the fire out first
Mitigate first: roll back, fail over, flag off
Find out what started it later
Root cause analysis after recovery
Meeting the next day, no blame
The blameless postmortem
New rule: clean the grease trap weekly
An action item with an owner and a date

04Why Do We Need It?

⏱️Shorter outages
Clear roles and a known process save the minutes lost to confusion.
🧠Calm under stress
A checklist works when people are tired, scared or woken at 3 am.
🀝Customer trust
Honest, early updates keep trust even when the service is down.
πŸ”No repeat incidents
Postmortem actions fix the cause, not only the symptom.
πŸ“šShared learning
One team’s bad night becomes everyone’s lesson.
πŸ’€Healthier on-call
Good process, rotation and fewer repeats protect people from burnout.
You cannot prevent every failure, but you can make each one short, small and educational.

05Where Do We Use It?

☁️Cloud and SaaS teams
Almost every service company has an on-call rotation and a postmortem habit.
πŸ§‘β€πŸ”§Site reliability teams
SRE grew around this practice, together with SLOs and error budgets.
πŸ’³Payments and banking
Outages cost money fast, so severity rules and escalation are strict.
πŸ₯Health and safety systems
Incident reviews are an old tradition in aviation and medicine, which software borrowed.
πŸ›‘οΈSecurity incidents
Breaches follow the same shape: detect, contain, recover, review.
πŸ›’E-commerce peaks
A sale day with a war room, a commander and a status page ready.

06Types / Parts / How It Works

Severity levels (an example scheme)

Every company picks its own scale. The point is to agree in advance what each level means and who gets woken.

LevelMeaningTypical response
SEV1Major outage or data loss. Most users affected.Page everyone needed, all hands, executive and customer updates
SEV2Big feature broken or many users slow.Page on-call, an incident commander, status page update
SEV3Partial or minor impact, a workaround exists.Handle in working hours, ticket and owner
SEV4Cosmetic or very small.Normal backlog

The roles

Who does what in a big incident
Decides
πŸŽ–οΈIncident commanderruns the response, assigns work
Fixes
πŸ§‘β€πŸ’»Operations / expertsinvestigate and apply fixes
✍️Scribewrites the timeline as it happens
Tells
πŸ“£Communications leadstatus page, support, leaders
In a small team one person may wear two hats, but the jobs still exist.
Decision Work Messages

Numbers teams track

MetricStands forWhat it tells you
MTTDMean time to detectHow long the problem ran before anyone noticed
MTTAMean time to acknowledgeHow fast a human picked up the page
MTTRMean time to recover (or repair)How long the users were hurt in total
Incidents per monthCount by severityWhether things are improving
VisualizerRun a simulated incidentMake four decisions in a row: acknowledge or ignore, organise or scatter, mitigate or investigate, communicate or stay silent. Then try again with different choices and compare the minutes and failed orders.
Minutes so far
4
from first failure
Failed orders
0
illustrative
Support tickets
0
illustrative
Decision 1 of 4: Detect and triage
πŸ“Ÿ The pager fires: checkout errors are at 12%, four minutes after a deploy. What do you do?

A simplified story with fixed, made-up numbers. Real incidents are messier, but the pattern holds: tell people early, give roles, mitigate first, and write it down.

07How to Use It / Steps / Implementation

During the incident

  1. 1
    Acknowledge and declare
    Say out loud that it is an incident, pick a severity, and open one channel for it.
  2. 2
    Name an incident commander
    One person decides. They do not have to be the best engineer, and they should not be typing fixes.
  3. 3
    Assign a communications lead
    Post on the status page early, then at a steady rhythm (for example every 30 minutes), even if the news is β€œstill working on it”.
  4. 4
    Mitigate before you diagnose
    Ask: what was the last change? Can we roll it back, fail over, or flag it off? Prefer the safest, fastest option.
  5. 5
    Write it down as you go
    A scribe records what was tried, when and by whom. Memory is poor after a stressful night.
  6. 6
    Hand off when tired
    A long incident needs shifts. A clear handoff note beats a hero who stays up for 20 hours.
  7. 7
    Declare it resolved
    Check the dashboards, tell customers, and schedule the postmortem within a few days.

The blameless postmortem

SectionWhat goes in it
SummaryTwo or three sentences a stranger can understand
ImpactDuration, users affected, orders lost, SLO budget spent
TimelineTimes in one time zone: detected, escalated, mitigated, resolved
Root cause and contributing factorsSeveral causes: the bug, and why tests, review and alerts missed it
What went well / badly / luckThe honest list, including where we were lucky
Action itemsEach with an owner, a due date and a ticket
πŸ’‘Good action items are specific
"Be more careful" is not an action. "Add a canary stage for the checkout service (Priya, by the 20th)" is.
⚠️Five whys have limits
Asking why five times is a good start, but it tends to find a single chain, and real incidents have several. Look for contributing factors beside the main chain.

08Key Terms to Know

TermMeaning in easy words
IncidentAn event that harms users or the service and needs a coordinated response
Severity (SEV)A level that says how bad it is and how big the response should be
Incident commander (IC)The person who runs the response and makes the calls
Communications leadThe person who updates the status page, support and leaders
MitigationReducing the harm quickly, without yet knowing the root cause
Root causeThe underlying reason the incident happened (often several)
PostmortemA written review after the incident, with timeline, causes and actions
BlamelessFocused on how the system allowed the failure, not on whom to punish
On-callThe person (or rotation) who is paged when something breaks
EscalationPassing the page to someone else if no one responds, or the problem is bigger
RunbookA step-by-step guide for a known problem
MTTD / MTTA / MTTRTimes to detect, acknowledge and recover
Status pageA public page that tells customers what is happening

09Pros, Cons and Trade-offs

βœ… Pros
  • Shorter, calmer incidents
  • Fewer repeat outages
  • Clear ownership and communication
  • A culture that shares lessons
  • Evidence for reliability work and budgets
⚠️ Cons
  • Needs practice and drills to work
  • Postmortems take real time
  • Action items can go stale
  • On-call rotations cost people sleep
  • Blameless culture is hard to build and easy to lose

Trade-offs

ChoiceWe gainWe lose
Page on every alertNothing is missedAlert fatigue and burnout
Page only on user painQuiet nights, trusted pagerSome slow issues wait for morning
Formal incident rolesOrder and speedOverhead for tiny incidents
Postmortem for every incidentMore learningReview fatigue. Set a threshold.
Mitigate firstShort outageRoot cause may be harder to see afterwards

10Common Problems and Mistakes

Common mistakes

  1. Hunting the root cause while users suffer. Roll back first, investigate later.
  2. No clear leader. Ten people give ten orders, and the same server gets restarted three times.
  3. Silence. No status update makes customers assume the worst and floods support.
  4. Blaming a person. The next engineer hides their mistake, and you lose the lesson.
  5. Postmortems with no follow-up. Action items with no owner or date are never done.
  6. Single root cause thinking. One cause is a story. Real outages have several.
  7. Hero culture. The one person who always saves the day will burn out, and then leave.

Things to watch

πŸ“ŸAlert fatigue
Too many pages train people to ignore them. Review noisy alerts every month.
πŸŒ™Night shifts
Rotate fairly, give time off after a bad night, and follow the sun if you can.
πŸ“‰Error budget
A bad incident can spend the whole budget. Pause risky launches until it recovers.
πŸ§ͺUntested process
Run game days so the first practice is not a real outage.

11Real-World Examples

πŸ”Google SRE
Popularised blameless postmortems, error budgets and the incident commander role in its public SRE books.
🧯Incident command system
Software borrowed roles from emergency services, which have run big incidents for decades.
πŸ“„Public postmortems
Many cloud and SaaS companies publish their postmortems, and they are great reading for interviews.
πŸ“ŸPaging tools
Tools such as PagerDuty and Opsgenie handle schedules, escalation and acknowledgement.
πŸ’¬ChatOps
A dedicated chat channel, a bot to declare incidents, and a timeline created from the chat.
πŸ§ͺGame days
Teams practise a fake outage so roles and runbooks are tested before they matter.
Mini case: bad deploy at checkout
πŸš€Deploy v42errors rise to 12%
→↓alert, SEV2
↩️Roll backerrors normal in 5 min
→↓next day
πŸ“Postmortemadd a canary stage
Mitigate with a rollback in minutes. Find out why the canary missed it the next day.

12Related Topics to Read Next

Alerts and Monitoring→

How incidents are detected, and how to avoid alert fatigue.

Dashboards and Runbooks→

The tools used during an incident.

SLOs and Error Budgets→

Decide how bad an incident is, and what it costs.

Rollbacks and Immutable Infrastructure→

The most common way to mitigate.

Feature Flags→

Switch a bad feature off without a deploy.

Chaos Engineering→

Practise failures on purpose, before they happen.

Distributed Tracing→

Find where a slow or failing request went wrong.

13Interview Questions with Short Answers

14Quick Revision Cheat-Sheet

  • βœ”Lifecycle: detect, triage, mitigate, resolve, review.
  • βœ”First rule: mitigate (roll back, fail over, flag off), investigate later.
  • βœ”Roles: incident commander, communications lead, experts, scribe.
  • βœ”Severity: agree levels in advance (SEV1 worst).
  • βœ”Communicate: early, regular, honest. Status page and support.
  • βœ”Postmortem: blameless, timeline, impact, causes, actions with owners and dates.
  • βœ”Measure: MTTD, MTTA, MTTR and incidents per severity.
  • βœ”One line: β€œStop the bleeding first, then find out why, and fix the system, not the person.”
← Previous
SLOs and Error Budgets
Next β†’
Profiling