Elastic Load Balancing (ELB) آنے والی traffic کو متعدد targets (EC2 instances، containers، وغیرہ) میں تقسیم کرتا ہے — availability میں بہتری لاتا ہے (کوئی single point of failure نہیں) اور scalability میں (load پھیلانا)۔ یہ قابل اعتماد، scalable applications کے لیے ایک اہم جزو ہے۔
Load balancer کیا کام کرتا ہے
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)
