Design: Load Balancing System
Design focuses on the load balancer components and their differences at Layer 4 and Layer 7. Out of scope are backend server implementations and client-side details.
Functional Requirements
Non-Functional Requirements
Client
|
| TCP/HTTP Requests
v
+-------------------+
| Load Balancer |
| +-------------+ |
| | Layer 4 LB | |---> Backend Servers (TCP level routing)
| +-------------+ |
| |
| +-------------+ |
| | Layer 7 LB | |---> Backend Servers (HTTP routing, content-based)
| +-------------+ |
+-------------------+
|
v
Health Checks
|
v
Backend Server PoolPass the test and this pattern moves unknown