Learn AI at the cost of chai. Level 1 is free. Founding Pro will be ₹499 for the first year, about one chai a week.Five minutes a day, one AI idea at a time. Free to start, with a Google sign-in.From ML basics to production AI, one card at a time. Free to start, with a Google sign-in.

Blog By 5 min read system design reliability backend

How to prevent cascading failures: cap failover

How to prevent cascading failures, from Microsoft's 24-hour outage: failover moved the load, healthy servers inherited the fire. Five guardrails I'd add.

Failover worked perfectly. That was the problem.

On 12 November, Microsoft 365 went down for most of a day. Outlook, Exchange Online, Teams, Copilot. Governments, airlines and trading desks with no email for close to 24 hours.

The bug itself was boring. A Windows change from July. Lock contention. It sat quietly in production for more than three months.

What turned a bad bug into a global outage wasn’t the bug. It was the safety net. So if you’ve ever wondered how to prevent cascading failures in your own backend, this is the best free lesson you’ll get this year. Microsoft paid for it. We just have to read it.

What actually happened

Microsoft’s final post-incident report is dated 20 November. It lives in the Microsoft 365 admin center under EX1550543, and Ars Technica has a good walkthrough. Four things lined up:

  1. A latent defect in the gateway servers that front Exchange Online. Under load, a Windows process hit lock contention and ate all the CPU and memory. It was worse on newer machines with more cores. Their load tests ran on older machines with fewer cores.
  2. Less capacity than usual. Nearly 14% of the gateway fleet was out of service for a routine deployment.
  3. A failover. At 1:07 AM UTC, a routing issue on Teams’ own gateway in US East triggered an automatic failover. All Teams traffic, worldwide, moved onto the gateway that Exchange uses.
  4. Monday-morning energy, on a Thursday. Broad failures started around 4 PM UTC, as the US workday climbed to its peak.

Here’s the part I keep rereading. Microsoft says each of those conditions is normal. Even all four together would have been routine without the bug. Nothing on that list is exotic. Most teams have had a deploy, a failover and a traffic peak in the same week.

How the failure spread

When gateway servers stopped responding, traffic management did what it’s built to do. It moved their traffic to healthy capacity nearby.

Those servers had the same bug. Now they had more load too. So they fell over. Their traffic moved again. Fewer servers, same load, more pressure. In under two hours, more than 80% of the North American gateway servers were unresponsive.

Then the region ran out of healthy capacity, so the system sent traffic to other regions. Same bug there. About two hours later, every region was hit.

Every single step was reasonable. Every single step made it worse.

That’s a cascading failure. Not one big crash, but a chain of small, correct-looking decisions, each one handing the problem to the next healthy thing.

Recovery had its own sequel. Servers that came back were flattened by queued client reconnects and went down again. According to internal memos Reuters reviewed, responders sent more than 11,000 messages across 11 Teams chats, and Microsoft has now declared a “Code Red”. One exec said the component had built up “roughly ten years’ worth of acceptable failures”.

Ten years of acceptable. One day of not.

Why does failover cause cascading failures?

Because failover assumes the failure is local.

“That server is broken, send its work somewhere else.” Great, when the server is the problem.

But when the problem is load, or a bug that load wakes up, moving the load doesn’t fix anything. It concentrates it. The healthy servers aren’t immune. They’re just next in the queue.

A health check can tell you “this box is sick”. It can’t tell you “this box is sick because of what we keep sending it”. So the automation treats a fleet-wide problem like a hundred separate local ones, and it does it faster than any human can step in.

I’ve written about safety promises you never actually test before. Failover is the same thing. A safeguard you’ve never run at peak load isn’t a safeguard yet. It’s a hope with a config file.

How to prevent cascading failures: five guardrails

None of this needs a Code Red budget. Most of it is a setting you already have and never touched.

1. Cap how much capacity automation can pull. Give your load balancer an ejection budget. If more than a small slice of the pool looks sick at once, the servers probably aren’t the problem. The traffic is, or the check is. Envoy has this built in: max_ejection_percent in outlier detection, which defaults to 10%. If your setup has no such cap, a 30-second database blip can pull every instance out of rotation together.

2. Keep the blast radius small. Microsoft’s own fix list says it: Teams should fail over only for the affected region, not worldwide, and the gateway gets split into pools per workload. In small-team terms, don’t let a noisy neighbour fail over onto your critical path. Your login and payments shouldn’t share a lifeboat with your PDF exports.

3. Shed load instead of spreading it. A server that returns a fast “503, try again” to 20% of requests survives and serves the other 80%. A server that tries to serve everyone serves no one. Load shedding is one of the five Code Red workstreams in Microsoft’s memo. Rejecting work on purpose feels wrong. It’s still better than rejecting all of it by accident.

4. Bring servers back slowly. A server rejoining a pool during an outage is walking into a queue that’s been waiting for hours. Use slow start (AWS Application Load Balancers have a slow start mode on target groups), admission control, and clients that retry with backoff and jitter. I wrote about the quota version of this, where retrying into a throttle hurts everyone, in the Workspace MCP post. Microsoft lists “gradual traffic ramp-up and admission control when servers rejoin” as an open fix. Without it, you get the sequel: back up, flattened, down again.

5. Do the headroom maths with everything subtracted. Spare capacity, minus what’s out for deploys, minus whatever a failover can dump on you, at peak. That’s your real headroom. Microsoft had 14% out for maintenance and a whole extra workload landing on the gateway. Load test on hardware that looks like production, at production peak, because that’s where their bug was hiding.

Do small teams need to worry about this?

More than Microsoft does, honestly.

With thousands of capacity units, pulling one is noise. With two app servers behind a load balancer, pulling one is half your capacity. Pulling both is the whole company.

The small-team version of this outage goes like this. The database gets slow, a deep health check fails on both instances, the load balancer pulls them both, and a slow database turns into a dead site. Same pattern, smaller logo.

You don’t need Kubernetes for this either. You need a dumb liveness check that only asks “is this process stuck?”, a cap on ejections, and an afternoon spent breaking things on purpose before your users do it for you.

My Rule for 2026: Failover should move a failure, never multiply it. If your automation can pull more capacity than a human would dare to, cap it.

So, quick one. What does your load balancer do when half your servers fail health checks at the same time? Have you checked, or are you hoping?

Get the next one by email.

Sent when a post is ready. Never filler.

Free / One email per post / Unsubscribe in one click

Next issue // when it is ready

No filler.

One lesson from production per issue. What broke, why, and the rule I took from it. No roundups. No launch-day cheerleading.