Load Balancing: L4/L7, Algorithms, Consistent Hashing

How traffic is spread, why algorithms fail in surprising ways, consistent hashing with virtual nodes, health checks, LB tiers, long-lived connections and draining.

About 80 minutes · 15 exam questions · 9 interview questions · 2 code labs

What you will learn

  1. What a load balancer does: L4 vs L7
  2. Balancing algorithms and where each breaks
  3. Consistent hashing with virtual nodes
  4. Sticky sessions (session affinity): convenience vs balance
  5. Health checks, outlier detection and slow start
  6. LB tiers, failover and not being the bottleneck
  7. Long-lived connections: gRPC, HTTP/2 and WebSockets
  8. Connection draining and zero-downtime deploys
  9. Load balancing in interviews: what to say and numbers to know

Previous: Service Mesh: Service-to-Service Traffic