System Design

Anatomy of a Cascading Failure: Lessons from the Microsoft 365 Outage

A months-old bug, three ordinary conditions and a reroute loop took down Exchange Online. What the Microsoft 365 outage teaches about cascading failures.

ยท
9 min read
AI-assisted

AI tooling disclosure

Generative AI materially contributed to this article.

Human review confirmed by the author.

Anatomy of a Cascading Failure: Lessons from the Microsoft 365 Outage

A bug that had run unnoticed in production for more than three months met three ordinary operating conditions. Within about two hours it had spread from North America to servers in every region, and Exchange Online was disrupted for nearly 24 hours.

Nothing about the trigger was exotic, which is what makes this outage worth studying. This post walks through how the cascade unfolded, why recovery was so hard, and what you can apply to your own systems.

The facts below come from Microsoft's final post-incident report (dated November 20, 2026) and coverage by The Register, both linked at the end. Microsoft states that the incident was not caused by a cyberattack or by AI tooling, and that no enterprise mail was permanently lost. The lessons are general engineering practice, not a verdict on any one team.

What happened

timeline
    title Microsoft 365 outage, November 12 to 14 2026 (all times UTC)
    section Dormant
        July : Change starts rolling out to gateway servers : Passes load testing and a staged rollout with no issues
    section Trigger
        Nov 12 0107 : Routing issue in US East moves Teams traffic onto the gateway shared with Exchange Online
        Nov 12 0107 to 1600 : Gateways stay healthy while load climbs toward the daily peak
        Nov 12 1603 : Connectivity anomaly monitor fires as US traffic nears its peak
        Nov 12 1620 : Incident starts and on-call engineers are alerted
    section Struggle
        Nov 12 1900 : Deployments and configuration changes paused
        Nov 12 2355 : Servers returned to service fail again once traffic reaches them
        Nov 13 0030 : Connection negotiation identified as the culprit
    section Recovery
        Nov 13 0720 : Update reverting the defective change is applied
        Nov 13 1610 : Customers no longer see active impact
        Nov 14 0415 : Incident declared resolved

The anatomy: three ingredients

1. A latent defect. A change enabled on the Microsoft 365 network gateway servers contained a lock contention problem inside an internal Windows process, which could exhaust a machine's CPU and memory. It only bit on Microsoft's newer hardware: newer machines have more cores, so more requests run concurrently, which means more contention. (Neither the defect nor the update applies to standard Windows deployments.)

The change began rolling out in July through Microsoft's safe deployment process and ran worldwide for over three months with no issues. Load testing missed it because the lab used older, lower-core hardware and traffic that differed from what production saw that day.

2. Three ordinary conditions. Microsoft says each of these is routine and would not have caused an outage on its own:

  • Reduced capacity. Nearly 14 percent of gateway capacity was out of service as part of routine operations while the latest service version was being deployed. The service keeps enough spare capacity that this alone would not have caused impact.

  • A Teams failover. A routing issue in the US East region caused Teams connection timeouts and triggered an automatic failover, moving Teams traffic onto the redundant gateway that also serves Exchange Online.

  • Peak traffic. The gateways stayed healthy for about 16 hours after the shift because they were not yet serving the daily peak. Broad failures began around 4:00 PM UTC as US traffic approached its peak.

Together they pushed the gateways into the defect, and requests built up until servers stopped responding.

3. An amplifier. The gateway is made of thousands of capacity units, each a shard of servers and networking. When servers became unresponsive, traffic management automatically routed traffic to other healthy capacity units in the same region, which is normally what keeps the service resilient.

Here, the remaining units absorbed the extra load, which made them more likely to hit the same defect. In less than two hours a significant portion of the North American fleet was affected, and at the lowest point more than 80 percent of servers were unresponsive.

When a region ran short of healthy capacity, traffic was redirected to other regions, which carried the same defect. Servers in every region were affected within about two hours of the broad failures starting.

flowchart LR
    A["Server hits the<br/>lock contention defect"] --> B["CPU and memory exhausted,<br/>server stops responding"]
    B --> C["Traffic rerouted to other<br/>healthy capacity units"]
    C --> D["Extra load triggers the<br/>same defect there"]
    D --> B
    D --> E["Over 80 percent of North American<br/>servers unresponsive at the lowest point"]
    E --> F["Region runs out of healthy capacity,<br/>traffic shifts to other regions"]
    F --> G["Servers in every<br/>region affected"]
    classDef start fill:#fef3c7,stroke:#f59e0b,color:#78350f
    classDef bad fill:#fee2e2,stroke:#ef4444,color:#7f1d1d
    classDef loop fill:#ffedd5,stroke:#f97316,color:#7c2d12
    class A start
    class B,D,E,G bad
    class C,F loop

This is the textbook shape of a cascading failure: a positive feedback loop. Each failure makes the next one more likely, and nothing in the loop brings the system back by itself.

Why recovery took so long

Microsoft names three reasons: finding a defect that was introduced months earlier, the need to restart servers both before and after applying the fix, and the time to deploy it across so many servers. The details are instructive:

  • Restored servers fell over again. As gateway servers returned to service, they were immediately overwhelmed by queued client traffic and became unresponsive again. The report says automated recovery was not equipped to cope with widespread failures combined with sustained reconnection demand.

  • Diagnosis was slow. Because the defect came from a change deployed months earlier, change auditing and diagnostics took longer to identify the Windows change as the root cause. It took about 15 hours from the first alert to an applied mitigation.

  • The usual safeguards did not apply. Stopping a rollout, rolling back a deployment or switching off a new feature are built for recent changes. The defect was already running worldwide, so recovery had to be run capacity unit by capacity unit.

  • The fix was heavy. Each server needed five steps: take it out of service, restart it from its unresponsive state, apply the patch, restart it again so the patch takes effect, and return it to service.

  • Recovery ran in groups. Engineers moved large groups of capacity units out of rotation, recovered every unresponsive server in a group concurrently, returned the group to service, and repeated this across regions.

  • Not every service could escape. Moving Teams, OneDrive, SharePoint and the Office apps to the redundant gateway was the first recovery step. Exchange Online could not fail out of the faulty gateway, and The Register ties the length of its outage to that.

flowchart TB
    subgraph naive["What happened at first"]
        direction LR
        N1["Server brought back online"] --> N2["Queued client traffic arrives at once"] --> N3["Overwhelmed and down again"]
    end
    subgraph ramp["What works better"]
        direction LR
        R1["Drain the group out of rotation"] --> R2["Fix every server in it while idle"] --> R3["Return traffic in steps with admission control"]
    end
    naive ~~~ ramp
    classDef bad fill:#fee2e2,stroke:#ef4444,color:#7f1d1d
    classDef good fill:#dcfce7,stroke:#22c55e,color:#14532d
    class N1,N2,N3 bad
    class R1,R2,R3 good

Eight lessons you can apply

1. Test at peak load on your newest hardware. The change sailed through lab load tests and a weeks-long staged rollout, because the defect only appears under high concurrency on high-core hardware. A canary alone would not have caught it without peak traffic.

Test on the newest hardware class, at peak-load limits, with production-representative traffic, and include failovers in those tests. Microsoft's report commits to the same: expanded load testing on its newest, highest-core hardware with regular tests at peak-load limits, and failover testing scoped to peak conditions.

2. Keep headroom for failover while capacity is out. Maintenance, deploys and failovers are normal. Size capacity for a failover that arrives while a slice of your fleet is already out and traffic is near its peak, and alert when capacity has been missing long enough to eat into headroom. Microsoft's plan includes added headroom and detection for extended capacity loss.

3. Shed load before you fall over. An overloaded server that tries to serve everything ends up serving nothing. Reject excess work early and cheaply, protect critical routes, and send a Retry-After so clients back off. Google's SRE guidance is to drop a fraction of traffic, retries included, once load exceeds capacity.

import express from "express";

const app = express();
const MAX_IN_FLIGHT = 200; // tune from load tests, not guesses
let inFlight = 0;

app.use((req, res, next) => {
  // Keep health checks and other critical routes outside this limit.
  if (inFlight >= MAX_IN_FLIGHT) {
    res.set("Retry-After", "5");
    return res.status(503).json({ title: "Server busy", status: 503 });
  }
  inFlight++;
  res.once("close", () => inFlight--);
  next();
});

4. Make retries and rerouting safe. Retries amplify load exactly when a system is weakest, and they multiply across layers. Amazon's Builders' Library gives the example of a five-layer call stack with three retries per layer, which can multiply load on the database by 243 times.

To keep retries from making things worse:

  • Use capped exponential backoff with jitter.

  • Retry only idempotent operations.

  • Cap total retries with a budget, such as a token bucket.

const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

async function withRetry(fn, { retries = 3, baseMs = 100, capMs = 2000 } = {}) {
  for (let attempt = 0; ; attempt++) {
    try {
      return await fn();
    } catch (err) {
      if (attempt >= retries || !err.retryable) throw err; // mark safe errors as retryable
      // Full jitter: wait a random time up to the capped exponential delay
      await sleep(Math.random() * Math.min(capMs, baseMs * 2 ** attempt));
    }
  }
}

Circuit breakers help too, but AWS notes that they introduce modal behavior that is hard to test, and that it has mitigated retry load by limiting retries locally with a token bucket. Microsoft's own list of fixes includes improved retry and back-off behavior, because service retries can spread problems to other capacity units.

5. Limit the blast radius. Two details in Microsoft's report show how this failure traveled. A routing issue in a single region moved all Teams traffic worldwide onto the shared gateway, and when a region ran out of healthy capacity, traffic management redirected traffic to other regions carrying the same defect.

Cells, partitions and bulkheads keep a failure inside one slice, and failover should be scoped to the affected region. Microsoft plans to partition gateway capacity into pools for different workloads, design smaller fault zones, and make Teams fail over only for the affected region.

6. Recover deliberately, and rehearse it. Returning a node to service at full traffic is how you knock it over again. Use slow start so recovering instances receive a growing share (for example HAProxy's slowstart option or Envoy's slow start mode), put admission control in front of recovering nodes, and restore capacity in groups drained out of rotation, as Microsoft eventually did.

Keep a kill switch for your own automation, too. Engineers disabled some automated traffic redirection performed by the monitors early on November 13, and later added temporary guardrails against automatic traffic distribution.

Then rehearse the bad day. If recovery automation was only built for partial failures, run game days for "most of the fleet is unresponsive". Microsoft lists gradual ramp-up, admission control and better fleetwide recovery procedures among its fixes.

7. Make the culprit change findable. About 15 hours passed between the first alert and an applied mitigation, partly because the defect came from a change deployed months earlier. Microsoft's report says its change auditing and diagnostics took longer to point at the Windows change, and that its fast-revert safeguards were built for recent changes.

Keep a queryable record of every change that reaches production, including OS images, configuration and feature flags, and record which build and hardware class each server runs.

The defect only hit newer hardware, so a breakdown of failing servers by hardware generation is exactly the kind of question worth answering in minutes. Microsoft plans to update diagnostics collection and change auditing for Windows changes.

8. Build escape hatches, and let queues absorb the shock. Moving Teams, OneDrive, SharePoint and the Office apps to the redundant gateway was Microsoft's first recovery step, and Exchange Online had no such option.

Email's retry queues helped soften the damage: Microsoft extended the delivery retry window from 24 to 48 hours, and all queued enterprise messages were eventually delivered. Some delayed messages to consumer mailboxes that had been inactive for over 30 days still expired and generated non-delivery reports. Queues turn an outage into a delay, but only if you check retry windows and expiry rules before the incident.

flowchart LR
    P["<b>Prevent</b><br/>Peak-load tests on newest hardware<br/>Failover tests at peak<br/>Change auditing"] --> C["<b>Contain</b><br/>Cells and partitions<br/>Regional failover scope<br/>Capacity headroom"]
    C --> S["<b>Survive</b><br/>Load shedding<br/>Retry budgets<br/>Circuit breakers<br/>Graceful degradation"]
    S --> R["<b>Recover</b><br/>Slow-start ramp-up<br/>Staged fixes<br/>Fast diagnosis<br/>Practiced runbooks"]
    classDef p fill:#dbeafe,stroke:#3b82f6,color:#1e3a8a
    classDef c fill:#ede9fe,stroke:#8b5cf6,color:#4c1d95
    classDef s fill:#fef3c7,stroke:#f59e0b,color:#78350f
    classDef r fill:#dcfce7,stroke:#22c55e,color:#14532d
    class P p
    class C c
    class S s
    class R r

Questions to ask about your own system

  • If part of my capacity were out for maintenance, could I survive a failover at peak traffic?

  • When a node fails, does its traffic move blindly, or only to nodes with room?

  • Do my retries have backoff, jitter and a budget, at every layer?

  • Can a recovering node ramp up, or does it receive full traffic immediately?

  • Can a problem in one region or workload shift traffic everywhere?

  • Within minutes, can I tell which change, build or hardware class the failing nodes share?

  • Have I rehearsed recovering when most of the fleet is down?

  • Does any critical dependency lack a way to fail out?

The most important lesson is the quietest one: the defect never showed up at deploy time. It surfaced at scale, on newer hardware, under a combination of normal events. The systems that survive days like this are the ones that were tested, partitioned and rehearsed for the combination, not just for the single case.

Further reading

Comments(0)

Join the discussion by logging into your account.

No comments yet. Be the first to comment!

Pradeep Kumar

Passionate developer sharing knowledge about modern web technologies and best practices.

Subscribe to Pradeep Kumar's Newsletter

Direct email dispatches when new stories are published. Zero algorithms.