← All tutorials

Skill Zuno · skillzunos.com · System Design

Load Balancers tutorial

Learn Load Balancers on Skill Zuno. This Load Balancers tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical Load Balancers problems on skillzunos.com.

Open Load Balancers on Skill Zuno

Also see the Load Balancers interview questions.

A load balancer spreads incoming traffic across several servers so no single server is overwhelmed and failed servers are taken out of rotation. Load balancers work at layer 4, routing TCP and UDP connections, or at layer 7, routing HTTP requests by path, header or cookie. Interviews cover algorithms, health checks, session affinity, TLS termination and making the load balancer itself highly available.

Load Balancers topics covered

  • Layer 4 versus layer 7 load balancing — Routing connections by IP and port versus routing requests by URL, headers and cookies.
  • Balancing algorithms — Round robin, weighted, least connections, least response time and consistent hashing.
  • Health checks — Active and passive checks, and how quickly unhealthy instances are removed and restored.
  • Sticky sessions — Pinning a client to one server, and why stateless servers make it unnecessary.
  • TLS termination — Decrypting HTTPS at the load balancer, and re-encrypting to backends when needed.
  • Highly available load balancers — Redundant pairs, floating IPs, DNS and anycast so the balancer is not a single point of failure.

What you can learn

  • Load Balancers tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • System Design topics alongside Load Balancers on skillzunos.com

More System Design tutorials

All tutorials