My account

Incident response and postmortems

In an incident, first stop the damage, then find the cause. One person coordinates as the incident commander and does not debug. Others fix, one person communicates, and someone writes the timeline. Afterwards, a blameless postmortem asks what in the system allowed the problem, and ends with a few action items that have owners and dates.

Not reviewedWritten with AI helpReading time: 14 minBlack Friday checkout incident in the shopStatus update and postmortem templates

Author: bezzad

Contents

The problem: everyone is busy, nobody is in charge

It is Black Friday. At 20:05, the checkout of our online shop starts failing for many customers. This is what happens in the team chat:

  1. Five developers start debugging at the same time. Three of them look at the same database graph. Nobody looks at the payment provider.
  2. Two people restart services without telling the others. One restart hides the error for a few minutes, so people think it is fixed.
  3. Sara, the lead, is debugging too. Her phone rings. It is the support team. She does not answer, because she is busy.
  4. Support learns about the problem from angry customers on social media. The product manager asks in three different channels: “What is going on?”

At 21:30 someone finds the cause: a feature flag turned on that afternoon sends every order to a new, slow fraud check. The fix takes two minutes. But the incident took almost ninety minutes, and nobody knows exactly what happened when.

The team was not lazy. Everyone worked hard. The problem was no roles and no process.

Before the incident: severity levels

An incident is any unplanned event that hurts customers or the business and needs a fast response. Not every problem is the same size. So teams agree in advance on severity levels. Here is an example for our shop. Each company writes its own:

Level Example Response
SEV1 Checkout is down for many customers. Everyone needed joins now, any hour. Updates every 30 minutes.
SEV2 Search is slow, or one payment method fails. On-call person and an incident commander, in working hours or on call.
SEV3 A small bug in the admin panel. A normal ticket. No incident process.

Agreeing in advance matters, because during an incident nobody has time to argue about how serious it is. A simple rule also helps: if you are not sure, declare the incident. Closing a small incident is cheap. Starting late is expensive.

Roles during the incident

Many teams use roles that come from emergency services. The Google SRE book, PagerDuty and others describe similar sets. The names change a little, but the idea is the same: one person coordinates, others do the work.

Incident commander (IC)Coordinates and decidesDoes not debugRespondersInvestigate and fixOne clear task eachCommunicationsUpdates for support,product and customersScribeWrites the timelineWhat, when, whoIn a small team one person can hold two roles, but not IC and deep debugging
The incident commander does not debug. Their job is to keep the whole picture and make decisions.
  1. Incident commander (IC). Coordinates. Decides who does what, chooses between options (“roll back or wait?”), and asks for more help. The IC does not debug. If the IC goes deep into logs, nobody sees the whole picture anymore.
  2. Responders (operations, subject experts). Investigate and fix. Each one gets a clear task from the IC: “Mina, check the payment provider. Omid, list the changes deployed today.”
  3. Communications lead. Writes updates for support, the product manager and, if needed, customers. This way, the people fixing the problem are not interrupted.
  4. Scribe. Writes the timeline: what we saw, what we did, at what time. Very important for the postmortem later. In a small team, the communications lead can also be the scribe.
The lead is not always the IC. A lead who knows the code best is often more useful as a responder. Any trained person on the team can be the IC. What matters is that the role is said out loud: “I am the incident commander for this incident.”

The first minutes: stop the damage

The first goal is to mitigate: make customers stop suffering. Finding the root cause comes later. In our Black Friday case, the questions should be:

  1. What changed recently? A deploy, a configuration change, a feature flag, a provider. Most incidents follow a change.
  2. Can we undo it quickly? Roll back the deploy, turn off the feature flag, move traffic away.
  3. Is the damage getting worse? If yes, a fast rough fix is better than a perfect slow fix.

Turning off the new feature flag would have fixed checkout in a few minutes, long before anyone understood the slow fraud check.

Communication: one channel, a regular rhythm

  1. One channel for the incident. For example a new chat channel only for this incident. Decisions are written there.
  2. Updates on a fixed rhythm, for example every 30 minutes for SEV1. Even “no news” is an update. Silence makes people interrupt the responders.
  3. The same short format each time. It answers four questions: what is the impact, what do we know, what are we doing, when is the next update.

With a clear IC, an update on Black Friday could look like this:

[SEV1] Checkout failures - update 3 - 21:31

Impact: about 40% of checkouts fail since 20:05.
Known: failures started after the "new-fraud-check" flag was turned on.
Doing: turning the flag off now. Watching the error rate.
Next update: 22:00, or earlier if the situation changes.
IC: Reza

After the incident: the timeline

When the incident is over, the scribe’s notes become a timeline. A few points in time are especially useful, because they show where time was lost:

Time to detect: about 5 hoursTime to mitigate: about 90 minCleanup15:1020:0521:3223:00Flag turned onErrors detectedFlag turned offOrders fixedThe fix itself took two minutesNot to scale
Time to detect and time to mitigate are often longer than the fix itself. The postmortem looks at each gap.
  1. When did it start? 15:10, when the flag was turned on. Orders were already slow, but not failing yet.
  2. When did we detect it? 20:05, when errors became high. Why not earlier?
  3. When did we start the response? Who was in charge, and when?
  4. When did we mitigate? 21:32, when the flag was turned off.
  5. When was it fully resolved? For example after failed orders were checked and fixed.

The blameless postmortem

A postmortem (also called an incident review) is a short document and a meeting after the incident. Its goal is to learn, so the same thing does not happen again.

It must be blameless. That means we assume everyone did the most reasonable thing with the information and tools they had at that moment. Why?

  1. If people are blamed, they hide information. Next time, the person who turned on the flag will not say so for an hour.
  2. “Human error” is not a root cause. People always make mistakes. The real question is: why did the system allow one mistake to break checkout?
  3. Blaming one person is easy, and it stops the search. Then the real weak points stay.

Blameless does not mean nobody is responsible. It means we look for what in the system allowed the problem, and we fix the system.

Slow fraud check blocks checkoutFlag tested only with a few test ordersNo rule for risky changes on sale daysNo alert on checkout latencyNo incident commander, no change checkCheckout failson Black FridayNot one root cause, and not "human error": five places to make the system stronger
An incident usually has several contributing factors. Each one is a place where the system can get stronger.

For our Black Friday incident:

  1. Why did the flag break checkout? The new fraud check took several seconds for each order, and checkout waited for it.
  2. Why was it not caught before? The flag was tested only with a few test orders, not with real traffic.
  3. Why was it turned on on Black Friday? There was no rule about risky changes during big sales days.
  4. Why did detection take hours? There was an alert on errors, but not on checkout latency.
  5. Why did the response take ninety minutes? No incident commander, and nobody checked recent changes first.

Action items: few, specific, owned

A postmortem is only as good as its action items. “Be more careful” is not an action item. Good action items are specific, have one owner, a date, and are tracked like normal work.

Bad

  • Be more careful with flags.
  • Improve monitoring.
  • Better communication next time.
  • Arash should test more.

Good

  • Add an alert on checkout latency. Owner: Mina. By 5 Dec.
  • New flags start at 5% of traffic. Owner: Omid. By 12 Dec.
  • Freeze risky changes on big sales days. Owner: Sara. By 1 Dec.
  • Train two more people as IC. Owner: Reza. By 20 Dec.

A few rules for the lead:

  1. Few is better. Three or four items that get done are better than fifteen that are forgotten.
  2. Put them in the normal backlog, with priority. Check them in planning.
  3. Share the postmortem widely. Other teams learn from it too.
  4. Thank people. The person who found the cause, and the person who admitted turning on the flag. This is how you get honesty next time.

Common mistakes

Mistake Result The right way
Everyone debugs, nobody coordinates Repeated work, missed directions. One incident commander who does not debug.
Looking for the root cause first Customers suffer longer. Mitigate first: roll back, turn off the flag.
No updates while working Responders are interrupted, trust drops. One channel, fixed rhythm, fixed format.
Declaring the incident too late Lost time at the start. If unsure, declare it.
“Root cause: human error” The weak point in the system stays. Ask what in the system allowed it.
Many vague action items Nothing changes. A few items with an owner and a date.
Action items outside the backlog They are forgotten. Track them like normal work.

Summary in six lines

  1. Agree on severity levels before incidents. If unsure, declare the incident.
  2. One incident commander coordinates and does not debug. Others fix, communicate and write the timeline.
  3. Mitigate first. Most incidents follow a change, so check what changed and undo it.
  4. Update on a fixed rhythm, in one channel, with the same short format.
  5. The postmortem is blameless: it looks for what in the system allowed the problem.
  6. Finish with a few specific action items, each with an owner and a date, tracked like normal work.

Done reading this lesson?Mark it as finished so it shows in your lessons list and report card.