Load Balancing
Load Balancers
- Traffic Cops: Spread incoming requests across multiple servers, preventing any single server from being overwhelmed.
- Types:
- Network Load Balancers (Layer 4): Route based on IP/port, good for raw speed.
- Application Load Balancers (Layer 7): Aware of HTTP requests, making smart routing decisions on paths or content.
- Importance:
- Scaling: Add more servers behind the load balancer as traffic grows.
- Availability: If a server fails, the load balancer redirects its traffic.