Building a Load Balancer from Scratch

Round-robin, least-connections, and consistent hashing: understanding the layer that sits in front of everything.

Created Byeulerfoldeulerfold
4 weeks
Jul 23
to start learning
Curriculum

Share:

About this Course

Round-robin, least-connections, and consistent hashing: understanding the layer that sits in front of everything. This Infrastructure Engineering curriculum is designed to give you hands-on experience and deep conceptual understanding. Across 4 intensive modules, you'll tackle real-world challenges and build practical projects that reinforce your learning. By the end of this journey, you'll have the skills and proof of work to demonstrate your expertise.

What you'll learn

Build a basic TCP proxy that accepts connections and forwards them to a backend server.
Implement multiple routing algorithms to distribute traffic across a pool of backend servers.
Implement consistent hashing to route users to the same server while allowing backend pools to scale.
Add active and passive health checking to automatically remove unhealthy backends and monitor load balancer metrics.

Prerequisites

advanced Level

This is a rigorous course requiring prior technical background.

  • Production engineering experience

Ideal for

Backend & Infrastructure Engineers

Infrastructure Engineering Professionals
Tech Enthusiasts
W1

TCP Sockets & Reverse Proxy Basics

Build a basic TCP proxy that accepts connections and forwards them to a backend server.

3 videos34m
3 readings
3 topics
1 homework
Learn

Topics

1.1
Socket Programming Refresher
Lec-86: Socket Programming in Computer Networks
8 minutes
1.2
Concurrency in Network Programming
Python Socket Programming Tutorial 1 - Basics of Networking
11 minutes
1.3
The Reverse Proxy Architecture
System Design Interview: When to use API Gateway, Load Balancer, or Reverse Proxy?
15 minutes
W2

Load Balancing Algorithms

Implement multiple routing algorithms to distribute traffic across a pool of backend servers.

3 videos37m
3 readings
3 topics
1 homework
Learn
W3

Consistent Hashing & Sticky Sessions

Implement consistent hashing to route users to the same server while allowing backend pools to scale.

3 videos36m
2 readings
3 topics
1 homework
Learn
W4

Health Checks, Failover & Observability

Add active and passive health checking to automatically remove unhealthy backends and monitor load balancer metrics.

3 videos34m
3 readings
3 topics
1 homework
Learn
Rate this course
0.0
0 reviews

Community Insights

0

Join the discussion

Sign in to share your thoughts and technical insights.

Loading insights...