Cloudflare Demo Shop

Load Balancing

Distribute traffic across origins anywhere — clouds, on-prem, regions — with smart health checks, geo-steering, and automatic failover. Global DNS-based and proxied options on the same platform.

How do you survive an origin outage without rewriting your DNS at 2am?

You have multiple origin servers across clouds and regions — for redundancy, capacity, or because legal made you. Routing users to the healthiest, closest origin requires constant health checks, geo-aware steering, and instant failover when something dies. Doing this with vendor-locked load balancers in one cloud doesn't help when that whole cloud has a bad day. Manual DNS failover is slow (TTLs!) and error-prone.

How it fits together

Diagram coming soon

Architecture diagram for this solution will be added here.

How Cloudflare solves it

Common questions

Is this DNS-based or actually proxying traffic?
Both options are supported. Proxied load balancing (where Cloudflare terminates TLS and forwards) gives you fastest failover, layer 7 routing, and full analytics. DNS-only mode (for non-HTTP protocols or when you don't want a proxy) is also available with reasonable TTLs.
Can I load-balance between AWS and GCP origins?
Yes. Cloudflare doesn't care where origins are hosted — they can be any combination of clouds, on-prem, or even other vendors. This is one of the main reasons multi-cloud customers use Cloudflare LB.
How fast is failover when an origin dies?
With proxied LB and aggressive health-check intervals, failover typically completes within 10–30s after the origin starts failing. DNS-only failover is bounded by your DNS TTL.
What about TCP/UDP traffic (databases, custom protocols)?
DNS-only LB handles any protocol via record-level steering. For TCP-proxied load balancing of non-HTTP protocols (e.g. SMTP, custom TCP), pair LB with Spectrum — also available on the platform.

Try it live

Demo coming soon

An interactive demo for Load Balancing is being built. In the meantime, check the "Dive Deeper" section below for the official docs and product blogs.

Docs & blogs

← Back to all solutions