Interview Prep/Networking/HTTP, TLS & Certificates

How do gRPC and HTTP/2 interact with load balancers?

AdvancedConceptHTTP, TLS & Certificates
Answer

gRPC uses HTTP/2 with long-lived multiplexed connections, so an L4 balancer spreads connections, not requests, and one busy client can pin all traffic to one backend. You need an L7 balancer that understands HTTP/2 (ALB with gRPC target groups, Envoy, nginx grpc_pass) or client-side load balancing.

In Kubernetes a plain ClusterIP Service gives poor gRPC distribution, so use a headless Service with client balancing or a mesh.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates