Understanding Cross-Zone Load Balancing in AWS

Cross-Zone Load Balancing is a feature in AWS Elastic Load Balancing (ELB) that ensures even distribution of traffic across EC2 instances, regardless of their Availability Zones (AZs). This article explains how it works, when to enable or disable it, and the cost implications for different load balancer types.


How Cross-Zone Load Balancing Works

Let's consider an example with two Availability Zones (AZs):

  1. AZ1 has a load balancer (ALB instance) managing two EC2 instances.
  2. AZ2 has another ALB instance, but it manages eight EC2 instances.
  3. Both ALB instances are part of the same general load balancer.

With Cross-Zone Load Balancing Enabled

Without Cross-Zone Load Balancing