Load balancing

A load balancer spreads traffic and hides failed instances. The interesting choices are the algorithm and what happens to sessions.

Lesson 1.14m 42sIntermediate14.8k students

Chapters

4:42
  1. 0:00Why do we need load balancers?
  2. 1:06How do load balancers work?
  3. 2:21When should you use a load balancer?
  4. 3:26Advantages
  5. 3:51Considerations
  6. 4:35Outro

What this lesson covers

  • Compare round robin, least connections, and hashing
  • Health check instances and drain them safely
  • Handle session affinity without pinning users forever

This lesson sits in Core Building Blocks, part of System Design Foundations. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Compare round robin, least connections, and hashing
  • Health check instances and drain them safely
  • Handle session affinity without pinning users forever

Resources