What is Load Balancer
Traffic distribution between servers
Load Balancer is an infrastructure component that distributes incoming network traffic across multiple servers to ensure high availability and performance.
How It Works
- Receiving incoming requests from clients
- Selecting optimal server based on algorithm
- Forwarding request to selected server
- Monitoring server health (health checks)
Balancing Algorithms
- Round Robin — sequential distribution
- Least Connections — to server with fewest connections
- IP Hash — client-to-server binding by IP
- Weighted — based on server capacity
Types of Load Balancers
- L4 (Transport) — TCP/UDP level
- L7 (Application) — HTTP/HTTPS level
- DNS Load Balancing — via DNS records
- Hardware — specialized devices
Popular Solutions
- Nginx, HAProxy — software-based
- AWS ELB, GCP Load Balancer — cloud-based
- F5 BIG-IP — hardware-based