Interview Prep/Networking/Load Balancing, Proxies & CDN

You need to design load balancing for 1 million requests per second. What changes?

AdvancedScenarioLoad Balancing, Proxies & CDN
Answer

Situation read → At this scale the balancer itself, connection limits and warm-up matter.

What I'd do →

  1. Use NLB or a fleet of Envoy or HAProxy nodes behind anycast or ECMP routing
  2. Pre-warm ALBs with AWS Support or use many smaller ALBs by service
  3. Prefer connection reuse and HTTP/2 or HTTP/3 to cut handshakes
  4. Scale targets across AZs with cross-zone on
  5. Load test ramps gradually with k6 or vegeta and watch ephemeral port, conntrack and file-descriptor limits

Why → At extreme scale, the bottleneck is usually state: sockets, conntrack tables and TLS handshakes.

Interview tip → Say you remove the shared state first and the load balancer second.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN