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
45 practiced

Describe an end-to-end connection draining strategy for a deployment where the traffic mix includes both short HTTP requests and long-lived WebSocket connections, from the moment an instance is marked for removal to the point it's safe to terminate. How would you measure and validate a safe drain duration in staging before trusting it in production?

MediumTechnical
41 practiced

Compare consistent hashing and rendezvous (highest-random-weight) hashing. How does each handle node addition and removal, what is the cost of rebalancing, and which would you use for cache routing versus partitioned storage with heterogeneous node weights?

MediumTechnical
47 practiced

Compare client-side load balancing (for example Netflix Ribbon-style) with server-side load balancing. How does service discovery integrate with the client-side approach, and what are the trade-offs in failure isolation, observability, and network topology? What would you additionally need to design if you were implementing the client-side selection logic yourself, for example minimizing connection churn on rebalance?

MediumTechnical
37 practiced

Implement a consistent hashing utility that supports add_node(node_id), remove_node(node_id), and get_node_for_key(key), using virtual nodes to improve distribution across the ring. Explain the data structures you used for ring lookup and their time complexity.

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.