Fastly: When the CDN Disappeared
Hard · system design problem
Your only active CDN returns errors worldwide. A second CDN is under contract but cold, the origin can serve a fifth of the traffic, and every second counts.
Inspired by Fastly’s June 2021 outage, when one customer’s configuration change triggered a latent bug and most of its network returned errors for close to an hour — taking major news sites, stores and government pages with it. Here: DNS sends all users to CDN A, which fetches misses through your Varnish origin shield from the origin. CDN B is under contract and configured, but has never received traffic — its caches are empty. At T+20s CDN A starts failing every request for fifteen minutes; it is a vendor, so you can neither restart it nor make it pass traffic through. The origin cannot boot more capacity in time.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.