Interview Prep/Networking/Load Balancing, Proxies & CDN

You must migrate from one load balancer to another with zero downtime. How?

AdvancedScenarioLoad Balancing, Proxies & CDN
Answer

Situation read → Run both in parallel and move traffic with DNS weights.

What I'd do →

  1. Build the new LB with identical rules and targets and test with curl --resolve
  2. Lower the DNS TTL in advance
  3. Use weighted records to shift 1, 10, 50, 100 percent while watching 5xx and latency
  4. Keep the old LB for a full TTL after 100 percent
  5. Update allow lists that contain LB IPs or hostnames

Why → Parallel run with weighted DNS makes rollback instant at any step.

Interview tip → Mention that clients with stale DNS keep hitting the old one for TTL, so don't decommission early.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN