Elastic Load Balancing (ELB) phân phối lưu lượng đến qua nhiều target (EC2 instances, container, v.v.) — cải thiện tính sẵn sàng (không có điểm lỗi đơn lẻ) và khả năng mở rộng (trải tải). Đây là một thành phần then chốt cho các ứng dụng đáng tin cậy, có khả năng mở rộng.
Load balancer làm gì
A LOAD BALANCER sits in front of multiple backend targets and distributes requests:
Client → LOAD BALANCER → ┬→ Instance 1
├→ Instance 2
└→ Instance 3
→ spreads traffic across targets (scalability + no single instance overloaded)
→ HEALTH CHECKS: routes only to HEALTHY targets (an unhealthy one is bypassed)
→ if a target fails, traffic goes to the others → HIGH AVAILABILITY
→ single entry point (clients hit the LB, not individual instances)
