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.
More on Load Balancing, Proxies & nginx in Production
How do you choose between ALB, NLB and an nginx or Envoy fleet?IntermediateHow do you tune ALB idle timeout and backend keep-alive to avoid 502s?IntermediateWhich nginx directives matter most for a production reverse proxy?IntermediateHow do you do rate limiting and abuse protection in nginx?IntermediateHow do you achieve zero-downtime configuration reloads in nginx and HAProxy?IntermediateHow would you design a highly available load-balancing tier on-prem or in a colo?Advanced