Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

How does cross-zone load balancing differ between ALB and NLB?

AdvancedConceptEC2, Auto Scaling and Load Balancing
Answer

With cross-zone enabled each load balancer node distributes across targets in all AZs equally. ALB: always on at the load balancer level (can be turned off per target group) with no inter-AZ data charge. NLB and GWLB: off by default; enabling it incurs cross-AZ data transfer charges.

With it off, uneven target counts per AZ produce uneven load, for example 2 targets in one AZ and 8 in another each getting 50% of traffic.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing