MSDN Documentation

Application Gateway Concepts

Understanding the core concepts behind Azure Application Gateway is crucial for designing and managing robust, scalable, and secure web applications.

What is Azure Application Gateway?

Azure Application Gateway is a web traffic load balancer that enables you to manage traffic to your web applications. It is a Layer 7 (HTTP/S) load balancer that allows you to route traffic based on different attributes of an HTTP request, such as the URL path or host headers.

Key Features:

Core Components of Application Gateway

Listeners

A listener is where the Application Gateway listens for incoming traffic. It is the combination of a frontend IP address, port, and protocol (HTTP or HTTPS).

Backend Pools

A backend pool contains the servers that will receive the traffic routed by the Application Gateway. These can be virtual machines, virtual machine scale sets, or App Services.

HTTP Settings

HTTP settings define how the Application Gateway forwards requests to the backend pool. They include details like the backend port, protocol, and cookie-based affinity.

Rules

Rules define how traffic is routed from the listener to the backend pool. There are two types of rules:

Example of a path-based rule:


listener: listener_for_app1
  IF path is /images/*
  THEN route to backend_pool_images
  WITH http_settings_for_images

listener: listener_for_app1
  IF path is /api/*
  THEN route to backend_pool_api
  WITH http_settings_for_api

listener: listener_for_app1
  ELSE (default)
  THEN route to backend_pool_default
  WITH http_settings_default
            

Health Probes

Health probes are essential for ensuring that traffic is only sent to healthy backend servers. Application Gateway sends probes to the backend servers and marks them as unhealthy if they don't respond within a specified time.

Application Gateway v1 vs. v2

Application Gateway v2 offers significant improvements over v1, including:

It is recommended to use Application Gateway v2 for new deployments due to its advanced features and improved performance.

Next Steps: Explore configuring Application Gateway for your specific scenarios, including setting up WAF, SSL termination, and URL-based routing.