How Load Balancers Work

How Load Balancers Work

How traffic is spread across servers, and what happens when one dies

What you'll learn

  • How a load balancer spreads requests
  • Round robin vs least connections
  • Health checks and surviving a server failure
  • Keeping sessions in a shared store like Redis

In this video, we'll look at what happens when one server can't keep up, and how a load balancer spreads requests across several servers. We'll cover round robin, least connections, health checks, and how a load balancer keeps your app running when a server goes down.

We'll also look at sessions, why a shared store like Redis helps, and popular load balancers like NGINX, HAProxy, and AWS Application Load Balancer.

More videos

32 short explainers so far, with more on the way

View all videos

Join the Community

roadmap.sh is among the top 10 most starred projects on GitHub and is visited by hundreds of thousands of developers every month.

Top 10 out of 28M!

371K

GitHub Stars

Star us on GitHub
Help us reach #1

+90kevery month

+3.2M

Registered Users

Register yourself
Commit to your growth

+2kevery month

52K

Discord Members

Join on Discord
Join the community

RoadmapsGuidesFAQsYouTube

roadmap.shby@nilbuild

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh·Terms·Privacy·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.