Interview Prep/Networking/Load Balancing, Proxies & CDN

Explain how you would load balance gRPC services properly.

IntermediateScenarioLoad Balancing, Proxies & CDN
Answer

Situation read → gRPC uses long-lived HTTP/2 connections, so connection-level balancing sends all requests from one client to one backend.

What I'd do →

  1. Use an L7 balancer that balances per request (ALB supports gRPC, or Envoy)
  2. In Kubernetes use a headless service with client-side balancing or a mesh such as Istio or Linkerd
  3. Configure health checks with the gRPC health protocol
  4. Set max connection age on servers so connections rotate
  5. Verify distribution by comparing per-pod request counters

Why → A plain L4 balancer sees one connection and cannot spread the multiplexed requests inside it.

Interview tip → Mention MAX_CONNECTION_AGE as the hidden hero.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN