Course contentsShow
← Cloud and Infrastructure
Lesson 245 of 2,9895. Load Balancing and Traffic ManagementFree lesson

Introduction to Application Load Balancers (ALB)

Understand ALB purpose, Layer 7 routing, and how it differs from network load balancing for HTTP/HTTPS traffic.

Introduction to Application Load Balancers (ALB)

What you'll learn: How Application Load Balancers operate at Layer 7 to intelligently route HTTP/HTTPS traffic based on request content.

What is an Application Load Balancer?

An Application Load Balancer (ALB) is a Layer 7 (application layer) load balancer designed specifically for web traffic. Unlike Network Load Balancers that work at Layer 4 (transport layer) and only see TCP/UDP connections, ALBs can inspect the actual HTTP/HTTPS request content—including URLs, headers, and hostnames—before deciding where to send the traffic.

Layer 7 Routing Power

Think of an ALB like a smart receptionist at a large office building who reads your appointment details, not just your name. Based on what you're asking for, they direct you to the correct department.

ALBs can route requests based on:

  • Path patterns (/api/* goes to API servers, /images/* to image servers)
  • Hostnames (api.example.com vs www.example.com)
  • HTTP headers (routing mobile vs desktop traffic differently)
  • Query strings (special parameters in URLs)

How ALBs Differ from Network Load Balancers

While Network Load Balancers excel at raw speed and low-latency TCP/UDP routing, ALBs sacrifice a bit of performance for intelligence. ALBs understand web protocols, can terminate SSL/TLS connections, and make routing decisions based on request content—something impossible at Layer 4.

Key Takeaway: Application Load Balancers operate at Layer 7, enabling content-based routing for HTTP/HTTPS traffic by inspecting request URLs, headers, and hostnames—making them ideal for modern web applications that need intelligent traffic distribution beyond simple connection-level balancing.