Load Balancing
Distribute traffic across instances and regions with the right load balancer layer, algorithm and health checking.
4 objectives 6 steps about 130 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Compare L4 and L7 load balancing, reverse proxies and API gateways by features, cost and failure behavior, and decide which concerns (routing, TLS and auth offloading, response aggregation) the gateway should own.
- Choose a balancing algorithm (round robin, least requests, power of two choices, hash-based) for a workload and explain its effect on tail latency.
- Wire service discovery, health checks, connection draining and session affinity so instances can join, fail or be deployed without user-visible errors.
- Route users across regions with DNS-based or anycast global load balancing and estimate failover time.
Lesson plan
6 steps, about 130 min · 5 of 5 lessons available so far
- Where load balancers sit: L4, L7, reverse proxies and gateways Concept · 25 min
- Balancing algorithms and the tail Concept · 20 min
- Service discovery, health checks, draining and sticky sessions Concept · 20 min
- Fronting three instances with a reverse proxy Lab · 30 min
- Global load balancing with DNS and anycast Concept · 20 min
- Load balancing check Knowledge check · 8 questions
Practise it
Put a reverse proxy (for example NGINX, HAProxy or Envoy) in front of three instances, compare round robin with least-requests under uneven request costs, then kill an instance during load and report the error rate with and without health checks and draining.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Load BalancerIntermediate · 6–12 h
- Build your own CDNAdvanced · 10–20 h
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.