---
name: loadbalancer-service-l7-explained
title: Layer 7 load balancing
description: The IBM Cloud&reg; Load Balancer service distributes traffic among multiple server instances, including bare-metal and virtual-server instances, by using Layer 7 (application layer) data.
last-updated: 2019-07-01
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/loadbalancer-service?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Layer 7 load balancing
{: #layer-7-load-balancing}

The IBM Cloud&reg; Load Balancer service distributes traffic among multiple server instances, including bare-metal and virtual-server instances, by using Layer 7 (application layer) data.
{: shortdesc}

* The data traffic to be distributed is classified by using policies and rules.
* Policies define what action to take when the data traffic matches all the rules that are associated with a policy.
* Layer 7 (L7) load balancing is supported for HTTP and HTTPS traffic only.

## Layer 7 policies and rules
{: #layer-7-policies-and-rules}

A Layer 7 policy is associated with a front-end application port. Multiple policies can be associated with a front-end port.

* These policies are evaluated in order, based on the priority assigned to each policy.
* An associated action is taken when the policy is matched.
* Each L7 rule is associated with a policy.
* If all the rules that are associated with the policy evaluate to `true`, the policy is matched, so the associated action is taken.

For more information, see [L7 Policy and Rules](https://cloud.ibm.com/docs/loadbalancer-service?topic=loadbalancer-service-layer-7-policy&format=markdown).

## Layer 7 pools
{: #layer-7-pools}

Each Layer 7 load balancer pool contains one or more logical server instances.

* Each logical server instance is identified by an IP address and port number.
* Each pool has a health monitor associated with it, which monitors the health of all the servers in the pool.
* A pool can be configured for session persistence.
* Use the source IP address of the client or HTTP cookie to configure session persistence.

For more information, see [L7 Pools](https://cloud.ibm.com/docs/loadbalancer-service?topic=loadbalancer-service-layer-7-pool&format=markdown).