Engineering

What Is CDN Failover? How It Works, and Why Single-CDN Setups Break

Published July 10, 2026 · Continuuly

CDN failover is the automatic process of redirecting traffic away from a failed or degraded CDN provider to a healthy backup, so that a website or application stays online without manual intervention. When a CDN's edge servers stop responding — due to an outage, a routing issue, or a misconfiguration — failover mechanisms detect the failure and reroute requests before users notice anything went wrong.

It sounds simple. In practice, it's one of the most misunderstood parts of modern web infrastructure — and one of the most expensive to get wrong.

Why CDN Failover Matters Now

Content Delivery Networks were built to solve a performance problem: serve content from edge locations close to users instead of a single origin server far away. That part works well. What CDNs don't inherently solve is what happens when the CDN itself goes down.

Every major CDN — Cloudflare, Akamai, Fastly, AWS CloudFront — has experienced outages that took down large parts of the internet, sometimes for hours. If your infrastructure depends on a single CDN provider with no failover path, a provider-side incident becomes your incident. Your team can't fix someone else's outage; the only real protection is not depending on just one.

How CDN Failover Works

Most failover systems follow the same three-stage pattern, regardless of the specific tooling:

1. Detection. Health checks — synthetic monitoring probes running from multiple locations — continuously test whether a CDN's edge nodes are responding correctly. Detection needs to be fast and resistant to false positives: a single failed probe shouldn't trigger a full failover, but a sustained pattern of failures across regions should.

2. Traffic redirection. Once a failure is confirmed, traffic is rerouted using one of a few mechanisms:

3. Recovery. Once the primary CDN is confirmed healthy again, traffic is gradually shifted back — usually incrementally, not all at once, to avoid overwhelming a provider that's still stabilizing after an incident.

CDN Failover vs. CDN Failure

These two terms get mixed up constantly, so it's worth separating them clearly:

A CDN can fail without failover ever kicking in, if there's no failover system in place at all. That's the situation most single-CDN setups are quietly in.

Is CDN Failover Before or After the Load Balancer?

This depends on the architecture, and both patterns exist:

If your goal is resilience against a CDN-provider outage specifically — not just origin server failure — you need the first pattern: something orchestrating traffic across multiple CDNs, not just behind one.

What Is CDN Stacking?

CDN stacking refers to running multiple CDN providers simultaneously rather than switching between them only during an outage. There are two common approaches:

Building CDN Failover: What Actually Matters

If you're evaluating or building CDN failover for production traffic, a few things determine whether it works when you actually need it:

Classify Traffic Before You Design Failover

Not all traffic deserves the same failover treatment. Before choosing an architecture, it helps to classify what your application actually serves and what must keep working during a partial outage:

This classification step prevents both over-engineering (paying for instant active-active failover on traffic that didn't need it) and under-engineering (discovering during a real incident that your most critical traffic had the weakest protection).

Why a Second CDN Alone Doesn't Solve the Problem

Buying a second CDN provider is the easy part. Multi-CDN setups fail in avoidable, repeatable ways: mismatched TLS certificates, inconsistent cache headers, missing origin allowlists, or stale WAF rules on the secondary provider. A site that works perfectly on the primary CDN can break subtly on the backup, because header normalization, cache defaults, and edge behavior differ between vendors even when both look correctly configured on paper.

The more common failure mode is operational drift: the backup path gets configured once, then quietly falls out of sync as the application changes over time. By the time a real incident happens, the secondary CDN no longer reflects current site behavior — a gap that stays invisible until traffic actually needs to use it.

The Bottom Line

CDN failover isn't a feature you get automatically by using a CDN — it's an architectural decision that requires monitoring, a redirection mechanism, and a second (or third) provider to fail over to, kept genuinely production-ready rather than configured once and forgotten. Single-CDN infrastructure has no answer to a CDN-provider-side outage, no matter how good that provider's uptime record is.

Read the complete guide to multi-CDN traffic steering and failover →

Continuuly is built specifically for this: an out-of-band control plane that continuously monitors multiple CDN providers and reroutes traffic automatically the moment one degrades — without requiring a migration or lock-in to any single vendor. See how it works →