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 →
- Use NLB or a fleet of Envoy or HAProxy nodes behind anycast or ECMP routing
- Pre-warm ALBs with AWS Support or use many smaller ALBs by service
- Prefer connection reuse and HTTP/2 or HTTP/3 to cut handshakes
- Scale targets across AZs with cross-zone on
- Load test ramps gradually with
k6orvegetaand 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.
More on Load Balancing, Proxies & CDN
What is the difference between a Layer 4 and a Layer 7 load balancer?BeginnerWhen do you choose an ALB and when an NLB in AWS?BeginnerForward proxy versus reverse proxy: what is the difference?BeginnerHow do health checks work on a load balancer and what makes a good one?BeginnerWhat are sticky sessions and why would you avoid them?BeginnerWhat does a CDN do and when does it help?Beginner