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.

HardTechnical
77 practiced

You observe rising p99 latency on your load balancer while backends show stable p95 latency and healthy CPU. Walk through a troubleshooting checklist covering the network, the LB proxies themselves, TLS handshakes, accept/queue backlogs, kernel limits, and client behavior. What instrumentation would you add to pinpoint the root cause?

MediumTechnical
36 practiced

How does weighted round robin differ from applying weights to least-connections? Sketch how you would distribute requests proportional to backend weight under each approach, and describe when you would adjust weights dynamically, for example during autoscaling or when an instance is degraded.

HardSystem Design
51 practiced

You need to tune health checks across thousands of instances so that rolling deployments don't cause flapping (healthy instances briefly failing checks and being pulled from rotation) while real failures are still caught quickly. Walk through your recommended probe interval, timeout, consecutive-failure threshold, and jitter strategy, and how you would validate and roll out these settings safely.

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?

EasyTechnical
51 practiced

Compare the common load balancing algorithms: round robin, weighted round robin, least connections, and consistent hashing. For each, explain how it behaves under variable request latencies, long-lived connections such as WebSockets, and heterogeneous backend capacity, and give one production use case and one drawback. When would health checks and session affinity change which algorithm you pick?

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.