System Design Fundamentals
Back to Foundations and Building Blocks

Load Balancers

Distribute requests across servers. Algorithms (round robin, least connections, hashing), L4 vs L7, and the failure modes. FIND_VIDEO: search 'load balancer system design interview' — recommended channel: ByteByteGo / Gaurav Sen. Aim for 10 min or under.

11 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Context and Architectural Role — Covers the fundamental purpose of load balancers as mandatory components for distributed system stability and scalability.
  2. Placement and Tiering — Examines where load balancers reside across infrastructure layers, including web servers, caching tiers, and databases.
  3. L7 Traffic Routing Capabilities — Explains host-based, path-based, and content-based routing policies to manage microservices and API versions.
  4. Software vs. Hardware Balancers — Compares cloud-native software load balancers with dedicated on-premise hardware appliances.
  5. Algorithms and Health Checks — Details static and dynamic traffic distribution algorithms and dynamic health ledger monitoring.
PDF notes

Frequently asked questions

Can load balancers balance database connections directly?

Yes, internal load balancers can distribute read queries across database read replicas, provided the application handles write-to-primary and read-from-replica routing logic.

What is the difference between path-based and host-based routing?

Host-based routing inspects the domain in the Host header (e.g., api.domain.com vs web.domain.com), whereas path-based routing inspects the URI string (e.g., domain.com/v1 vs domain.com/v2).

How does an active health check remove a node?

The load balancer sends periodic synthetic requests to a health endpoint; if a node fails a predetermined threshold of consecutive probes, it is marked down and skipped.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.