ladderlore
  • Type a service name, like S3 or IAM.

Service · Networking and Content Delivery

Elastic Load Balancing

Spreads incoming traffic across many targets and sends it only to the healthy ones.

AZ AAZ B
Users
Load Balancing
EC2EC2
Unhealthy target
  1. 1Users send requests to one address: the load balancer.
  2. 2It spreads the requests across healthy targets in more than one Availability Zone.
  3. 3The load balancer keeps checking every target. One that fails its health check gets no requests until it passes again.
One load balancer in front of targets in two Availability Zones (AZ A and AZ B).

Step by step

  1. 1Users send requests to one address: the load balancer.
  2. 2It spreads the requests across healthy targets in more than one Availability Zone.
  3. 3The load balancer keeps checking every target. One that fails its health check gets no requests until it passes again.
  • Application Load Balancer

    Handles
    HTTP and HTTPS requests (layer 7)
    Choose it for
    Web applications. It can route by URL path or host name.
  • Network Load Balancer

    Handles
    TCP, UDP and TLS traffic (layer 4)
    Choose it for
    Extreme performance, millions of requests per second, static IP addresses
  • Gateway Load Balancer

    Handles
    IP packets (layer 3)
    Choose it for
    Third-party virtual appliances, such as firewalls and intrusion detection
  • Classic Load Balancer

    Handles
    Layers 4 and 7
    Choose it for
    Older applications only. It is the previous generation.
The four types of load balancer.

1 / 2

  • Application Load Balancer

    Handles
    HTTP and HTTPS requests (layer 7)
    Choose it for
    Web applications. It can route by URL path or host name.
  • Network Load Balancer

    Handles
    TCP, UDP and TLS traffic (layer 4)
    Choose it for
    Extreme performance, millions of requests per second, static IP addresses

2 / 2

  • Gateway Load Balancer

    Handles
    IP packets (layer 3)
    Choose it for
    Third-party virtual appliances, such as firewalls and intrusion detection
  • Classic Load Balancer

    Handles
    Layers 4 and 7
    Choose it for
    Older applications only. It is the previous generation.
The four types of load balancer.

What it is

Elastic Load Balancing (ELB) gives your application a single point of contact. A load balancer receives incoming requests and spreads them across many targets, such as Amazon EC2 instances, containers and IP addresses, in one or more Availability Zones.

The load balancer checks the health of its targets and sends traffic only to the healthy ones. If an instance fails, users are routed around it. ELB also scales its own capacity as traffic changes, and it can take over the work of encrypting and decrypting HTTPS traffic.

What it is

Choose the type by the traffic. An Application Load Balancer handles web requests and can route them by URL path or host name. A Network Load Balancer handles very high volumes of TCP and UDP traffic, with static IP addresses. A Gateway Load Balancer sends traffic through third-party virtual appliances, such as firewalls.

Remember

  • One entry point in front of many targets.
  • Health checks: traffic goes only to healthy targets.
  • Targets in several Availability Zones make the application highly available and fault tolerant.
  • Works with Auto Scaling: new instances are registered with the load balancer automatically.
  • The load balancer scales by itself as traffic changes.

On the exam

  • “Distribute incoming traffic across multiple EC2 instances” points to Elastic Load Balancing.
  • “Route requests by URL path” points to an Application Load Balancer. “Millions of requests per second” or “a static IP address” points to a Network Load Balancer.
  • “Deploy and scale third-party firewall appliances” points to a Gateway Load Balancer.