Load Balancing and Traffic Management Questions

Distributing requests across capacity: load-balancing algorithms (round-robin, least-connections, consistent hashing), L4 versus L7 balancing, health checks, and traffic shaping. Covers sticky sessions, canary and blue-green routing, rate limiting, and graceful draining. The traffic-distribution layer that keeps a scaled system balanced and available.

MediumTechnical
47 practiced

A client asks you to choose between a managed cloud load balancer (like AWS ALB/NLB), an open-source proxy (NGINX/HAProxy), and an Envoy-based service mesh. Build a selection rubric covering scalability, supported protocols and features, management overhead, and cost, and recommend an approach for a 200-service enterprise.

HardSystem Design
37 practiced

Design a consistent-hashing scheme for a distributed cache sitting behind a load balancer. Cover virtual node placement, how you maintain the ring as nodes join or leave, and how you would detect and mitigate a hot key that keeps landing on the same node even though the ring looks balanced.

HardSystem Design
47 practiced

Design a Layer 7 load balancer that provides session affinity using consistent hashing on a session cookie. It must support health checks and rebalance sessions gracefully when nodes are added or removed. Discuss hash ring maintenance, virtual nodes, and how you would drain and migrate sessions without dropping in-flight traffic.

HardSystem Design
47 practiced

Design a global load balancing and failover system for a service receiving 1,000,000 requests per second across three regions, targeting 99.99% availability, low-latency geo-proximity routing, and fast regional failover, with session affinity needed for a subset of requests. Compare DNS-based, Anycast, and GSLB routing, and explain how you would propagate health state and avoid a traffic storm when a region fails over.

MediumTechnical
51 practiced

A backend instance recovers after being marked unhealthy, and a flood of clients reconnect immediately and overwhelm it (thundering herd). What mitigations would you apply at the load balancer and application level to prevent this?

Unlock Full Question Bank

Get access to all Load Balancing and Traffic Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.