Build Your Own Load Balancer
Build a production-grade L7 load balancer from scratch. You'll implement round-robin, weighted, and least-connection selection; active and passive health checks; circuit breakers; consistent hashing; sticky sessions; rate limiting; TLS termination (SNI); and Prometheus metrics. By the end you'll deeply understand what NGINX, HAProxy, Envoy, and AWS ALB actually do.
intermediate17 lessons4 chapters17 graded exercisesPython
No sign-up needed for lesson 1 · certificate on completion · sign up to save progress
What you’ll have built
Chapter by chapter. Every step is a graded exercise.
- Backend Pool & Selection
- Health Checks
- Advanced Algorithms
- Production Concerns
Starts in Python — solve in the language you choose in the editor, same tests either way.
Curriculum
4 chapters, 17 lessons. Each lesson is a short read, one graded exercise, and a quiz.
- 1Round-Robin Load BalancingRead · exercise · quiz
- 2Weighted Round-RobinRead · exercise · quiz
- 3Least-ConnectionsRead · exercise · quiz
- 4Power of Two ChoicesRead · exercise · quiz
Loading reference solution…