Table of Contents

Azure Load Balancer Overview

Azure Load Balancer is a highly available, scalable service that distributes incoming traffic among a pool of backend resources, such as virtual machines. It provides Layer 4 (TCP/UDP) load balancing, high availability, and network address translation (NAT).

In this article:

  • Provides high availability and application scalability.
  • Operates at the transport layer (Layer 4).
  • Supports both public and internal load balancing scenarios.
  • Offers features like health probes and session persistence.

What is Azure Load Balancer?

Azure Load Balancer is a regional service that distributes incoming traffic across a set of backend resources in a cloud service or virtual machine scale set. It provides:

Key Concepts

Understanding these concepts is crucial for effective use of Azure Load Balancer:

Features

Azure Load Balancer offers a rich set of features:

Scenario Examples

Azure Load Balancer is ideal for scenarios such as:

How it Works

When a client request arrives at the Load Balancer's frontend IP address and port, Load Balancer performs the following actions:

  1. Rules Evaluation: It checks its configured load balancing rules to determine how to handle the incoming traffic based on protocol and port.
  2. Health Check: It verifies the health of the backend instances using configured health probes.
  3. Distribution: Based on the load balancing rule and the health of the backend pool, it selects an available healthy backend instance using a chosen load balancing algorithm (typically hash-based).
  4. NAT: It performs Network Address Translation, mapping the frontend IP and port to the selected backend instance's private IP and port.
  5. Traffic Forwarding: The request is forwarded to the chosen backend instance.
  6. Return Traffic: Return traffic from the backend instance is typically sent directly to the client (Direct Server Return - DSR), bypassing the Load Balancer for efficiency.

Supported Protocols

Azure Load Balancer supports the following protocols:

It operates at Layer 4 of the OSI model.

Pricing

Azure Load Balancer pricing is based on the SKU used (Basic or Standard) and the number of load balancing rules and data processed. For detailed pricing information, please refer to the Azure Load Balancer pricing page.

Next Steps

Ready to deploy Azure Load Balancer? Explore these resources: