Fastly Global CDN Outage
A bug hidden for almost a month woke up when one customer made a perfectly valid settings change, and 85% of Fastly's network broke.
- Severity
- Front-page news
- Difficulty
- beginner
- Companies
- Fastly
- Tech
- CDN, Configuration management, Edge computing
- Root cause
- latent bug
The story
Quick (1 min)
On the morning of 8 June 2021 (UTC), big websites like Reddit, Twitch, GOV.UK, The New York Times and the BBC suddenly showed errors. They all used Fastly, a content delivery network (CDN) that serves websites from servers close to users.
On 12 May, Fastly had deployed software containing a bug. Nothing happened for almost a month. Then on 8 June a customer made a valid settings change that happened to meet the exact conditions to trigger the bug, and 85% of Fastly's network started returning errors.
Fastly spotted the problem within a minute and had 95% of its network working again within 49 minutes.
The lesson: a bug can sit quietly for weeks until the right input arrives, and when many sites share one provider, one bug can break a big slice of the web.
Keep reading to the end to earn XP.Read. XP earned.
Engineer (2 min)
What a CDN does. A CDN caches and serves websites from edge servers around the world. Customers control how their traffic is handled through configuration that Fastly pushes to its edge.
The latent bug. On 12 May 2021, Fastly began deploying software that "introduced a bug that could be triggered by a specific customer configuration under specific circumstances." Testing didn't catch it, and the trigger conditions didn't occur in production for almost four weeks.
The trigger. Early on 8 June, one customer pushed a valid configuration change that met those conditions. Because customer config is distributed across the network, the bug fired widely and 85% of the network returned errors. Nothing about the customer's change was wrong.
Response:
- 09:47 UTC onset, 09:48 detected by monitoring (one minute).
- 10:27 the triggering customer configuration was identified, then disabled.
- 10:36 services began recovering; 11:00 majority recovered; 12:35 mitigated.
- 17:25 permanent bug fix began deploying.
What Fastly said it would do: find out why QA and testing missed the bug, improve remediation time, and use the isolation capabilities of WebAssembly and Compute@Edge to build in more resilience.
Interview takeaway: treat customer config as untrusted input to your software, and isolate tenants so one tenant's settings can't take down everyone.
Keep reading to the end to earn XP.Read. XP earned.
Deep dive (2 min)
Timeline (UTC, from Fastly's summary)
- 12 May 2021: a software deployment introduces a bug that a specific customer configuration can trigger under specific circumstances.
- 8 June, 09:47: a customer pushes a valid configuration change that meets those circumstances. Global disruption begins and 85% of the network returns errors.
- 09:48: Fastly's monitoring identifies the global disruption.
- 09:58: status post published.
- 10:27: engineering identifies the customer configuration involved.
- 10:36: impacted services begin to recover.
- 11:00: majority of services recovered. Within 49 minutes of onset, 95% of the network was operating normally.
- 12:35: incident mitigated. 12:44: status post resolved.
- 17:25: deployment of the permanent bug fix begins.
Affected sites
Wikipedia lists Reddit, Twitch, Amazon, GOV.UK, The New York Times, The Guardian and the BBC among the sites disrupted. It notes the incident "prompted discussion about the internet's reliance on a small number of CDN providers."
What made it notable
- The trigger was legitimate. Fastly stressed the customer change was valid. The defect was entirely in Fastly's software.
- The gap between deploy and failure. Nearly four weeks separated the buggy deploy (12 May) from the outage (8 June), so rolling back "the last change" wouldn't have helped. The faulty code wasn't recent.
- Fast detection, fast mitigation. One minute to detect, 40 minutes to identify the triggering config, and most traffic recovered within the hour.
Fastly's stated next steps
- Deploy the bug fix "as quickly and safely as possible."
- A complete post mortem of the processes followed during the incident.
- "We'll figure out why we didn't detect the bug during our software quality assurance and testing processes."
- Evaluate ways to improve remediation time.
- Invest in "fully leveraging the isolation capabilities of WebAssembly and Compute@Edge."
"Even though there were specific conditions that triggered this outage, we should have anticipated it." (Fastly)
Fastly's public summary did not say what the bug was or which customer setting triggered it.
Keep reading to the end to earn XP.Read. XP earned.
Failure replay
Step by step, what broke and what it hit next. Showing the key steps. Switch to Engineer or Deep dive for every step.
- May 12Edge softwaredegraded
A deployment introduces a bug that only triggers on a specific customer configuration. Tests don't catch it.
Affects: Edge servers
- May 12 – Jun 8Edge servershealthy
For almost four weeks, nothing triggers it. The network looks healthy.
- 09:47Customer confighealthy
One customer pushes a valid settings change that happens to meet the trigger conditions.
Affects: Edge servers
- 09:47Edge serversdown
The bug fires across the network and 85% of it starts returning errors.
Affects: Websites
- 09:48Websitesdown
Major news, government and social sites fail for visitors worldwide. Monitoring flags it within a minute.
- 10:27Customer configrecovering
Engineers identify the triggering configuration and disable it.
Affects: Edge servers
- 10:36–11:00Edge serversrecovering
Services recover. 95% of the network is normal within 49 minutes of onset.
Affects: Websites
- 17:25Edge softwarehealthy
A permanent fix for the bug begins rolling out.
Impact
- Who was affected
- Visitors to websites served by Fastly worldwide; Wikipedia lists Reddit, Twitch, Amazon, GOV.UK, The New York Times, The Guardian and the BBC among them.
- How long
- About 49 minutes until 95% of the network recovered; mitigated at 12:35 UTC (under 3 hours from onset).
- Cost
- not disclosed
Lessons
- Bugs can lie dormant for weeks; "what changed recently?" might not find them.
- Treat customer configuration as untrusted input and fuzz your config parsing and handling.
- Isolate tenants so one tenant's settings can't break shared infrastructure.
- Fast detection and a way to quickly disable one customer's config shortened the outage.
Quiz
What triggered the Fastly outage?
The answer is A valid customer configuration change that hit a latent software bug. A bug deployed on 12 May was triggered on 8 June by a customer's valid configuration change.
Check answer
A valid customer configuration change that hit a latent software bug. A bug deployed on 12 May was triggered on 8 June by a customer's valid configuration change.
How much of Fastly's network returned errors?
The answer is 85%. Fastly said the trigger caused 85% of its network to return errors.
Check answer
85%. Fastly said the trigger caused 85% of its network to return errors.
How long after onset was 95% of the network operating normally?
The answer is 49 minutes. Fastly detected it within a minute and had 95% of the network normal within 49 minutes.
Check answer
49 minutes. Fastly detected it within a minute and had 95% of the network normal within 49 minutes.
Why might "roll back the last deploy" not have helped here?
The answer is The buggy code had been deployed almost four weeks earlier and wasn't the most recent change. The bug shipped on 12 May. The trigger on 8 June was a config change, not a deploy.
Check answer
The buggy code had been deployed almost four weeks earlier and wasn't the most recent change. The bug shipped on 12 May. The trigger on 8 June was a config change, not a deploy.
Interview prep
Try answering out loud before you open the model answer.
- system design
You run a multi-tenant edge platform where customers push their own configuration. How do you stop one customer's valid config from crashing the whole fleet, as happened at Fastly?
Show model answer
Treat tenant config as untrusted input. Validate it, and also fuzz the code that consumes it, since the Fastly config was valid but hit a bug. Roll out config changes progressively: apply to a small set of servers, watch error rates, then expand automatically. Isolate execution per tenant (separate processes, sandboxes such as WebAssembly, resource limits) so a crash affects one tenant, not the server. Make it possible to quickly roll back or disable a single tenant's config, and alert on fleet-wide error spikes tied to recent config pushes.
A strong answer hits:
- Config is untrusted input; fuzz the consumer
- Progressive rollout of config changes
- Per-tenant isolation (sandboxing, limits)
- Fast per-tenant disable or rollback
How did your answer compare? - debugging
An outage starts with no recent code deploys. How would you find the cause?
Show model answer
Widen the definition of change: config pushes (yours and customers'), feature flags, data changes, traffic patterns, certificate expiries, dependency updates and time-based triggers. Correlate the onset time with all change streams. Fastly's bug shipped on 12 May but only triggered on 8 June because of one customer's config, and they found it by identifying that config about 40 minutes in. Once you have a candidate trigger, mitigate by disabling it, then dig into the underlying code defect.
A strong answer hits:
- Change includes config, data, traffic, time, not just code
- Correlate onset with every change stream
- Mitigate by removing the trigger first
How did your answer compare? - behavioural
Your company's outage was triggered by a customer's action. How do you communicate about it?
Show model answer
Take ownership. Fastly stressed the customer's change was valid and the bug was theirs. Blaming a customer damages trust and is usually inaccurate, since your system should handle any valid input. Share a clear timeline, the impact, what you've done, and what you're changing. Don't name the customer. Be honest about unknowns and follow up with the full analysis.
A strong answer hits:
- Own the defect; valid input should never crash you
- Clear timeline and next steps
- Protect customer confidentiality
How did your answer compare?
Go deeper
- Official postmortemSummary of June 8 outageFastly, link checked 2026-11-25
- ArticleFastlyWikipedia, link checked 2026-11-25