Distribute Traffic Efficiently
Load balancing distributes incoming traffic across multiple servers to ensure reliability and performance.
- Prevent server overload - Improve speed - Ensure high availability
Round Robin → Equal distribution Least Connections → Less busy server IP Hash → Same user to same server
User → Load Balancer → Multiple Servers
Nginx HAProxy AWS Elastic Load Balancer
upstream backend {
server server1;
server server2;
}
- Scalability - Reliability - Performance