Interview Prep/Networking/Load Balancing, Proxies & nginx in Production

What is the difference between connection-level and request-level load balancing, and why does it matter for gRPC and HTTP/2?

IntermediateProductionLoad Balancing, Proxies & nginx in Production
Answer

L4 balancers pick a backend per connection. With HTTP/2 and gRPC, a client sends all requests over one connection, so one backend takes all load. Request-level (L7) balancing distributes each request.

Fix by using an L7 proxy (Envoy, ALB with gRPC), client-side balancing with a headless Service and round_robin policy, or a mesh.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production