Skip to Content

Distribute incoming traffic across multiple backend instances.

Data Flow

                   [Load Balancer]
                          |
        +-----------------+-----------------+
        v                 v                 v
+-------+         +-------+         +-------+
| app_0 |         | app_1 |         | app_2 |
+-------+         +-------+         +-------+

Layer 4 vs Layer 7

Algorithms

Pitfalls

Analogy

The receptionist at a busy clinic — routes patients to the doctor with the shortest queue, but always checks the doctor’s break status first.

Interview tip: Specify the routing algorithm + health-check mechanism + how the LB itself is fault-tolerant.

Advertisement