DNS Load Balancing vs Anycast: Tradeoffs
Two approaches to global routing; very different operational profiles. Most teams use both for different layers.
What each does
DNS LB: client gets different IP per query (round-robin, geo, latency-based).
Anycast: same IP everywhere; routing protocol picks closest replica.
Where DNS LB wins
- Application-aware routing; A/B testing; tenant-specific routing.
- Cheap; works at any DNS provider; flexible.
Where anycast wins
Sub-millisecond failover (no DNS TTL latency).
Truly global services (CDN, DNS itself, large APIs).
Limited per-customer routing.
Hybrid posture
Many CDNs use anycast for edge; DNS LB for routing among origins.
Layered approach.
Antipatterns
- DNS LB without short TTL. Failover slow.
- Anycast without BGP expertise. Limited control.
- One-size routing for everything. Misses optimization.
What to do this week
Three moves. (1) Apply this pattern to your highest-risk network path. (2) Measure the failure mode rate before/after. (3) Document the change so the next incident-responder inherits the knowledge.