A load balancer enables distribution of network traffic dynamically across resources (on-premises or cloud) to support an application.
A load balancer is a solution that acts as a traffic proxy and distributes network or application traffic across endpoints on a number of servers. Load balancers are used to distribute capacity during peak traffic times, and to increase reliability of applications. They improve the overall performance of applications by decreasing the burden on individual services or clouds, and distribute the demand across different compute surfaces to help maintain application and network sessions.
Modern applications must process millions of sessions simultaneously and return the correct text, videos, images, and other data to each user in a fast and reliable manner. To handle such high volumes of traffic, most applications have many resource servers with duplicate data among them.
Load balancing distributes network traffic dynamically across a network of resources that support an application. A load balancer is the device or service that sits between the user and the server group and acts as an invisible facilitator, ensuring that all resource servers are used equally. A load balancer helps increase reliability and availability, even in times of high usage and demand, and ensures more uptime and a better user experience.
Users and customers depend on near-real-time ability to find information and conduct transactions. Lag time or unreliable and inconsistent responses—even during peak demand and usage times—can turn a customer away forever. And high spikes in compute need can cause havoc to an internal server or server system if the incoming demand—or “load”—is too high to be easily accommodated.
Advantages of using a load balancer include:
There are two types of load-balancing algorithms in terms of how they operate: static and dynamic. Static load balancing measures the incoming load on a server using algorithms that have performance capacity information about the existing servers in the distributed network. Dynamic load balancing can dynamically identify the amount of load that needs to be shed during runtime and which system should bear the load. It is designed for systems with high fluctuation in incoming load.
The following are some of the common types of load balancing algorithms.
Load balancing works by either statically or dynamically responding to a user request, and distributing that request to one of the backend servers capable of fulfilling the request. If one of the servers goes down, the load balancer redirects traffic to the remaining online servers.
An example of static load balancing: A company hosts a website with content that is largely static. This scenario would be ideal for a static load balancer because the traffic needs are predictable and consistent. The company can use two (or more) identical web servers across which the static load balancer can distribute traffic.
An example of dynamic load balancing: A company experiences surges, spikes, and drops in traffic. Some are predictable and some are not. These organizations would benefit from dynamic load balancing. Such companies might include an e-commerce retailer announcing Black Friday hours and dates; a healthcare company which has just announced it can schedule online appointments for a seasonal vaccine; a government unemployment agency which requires unemployment insurance recipients to file a weekly claim on a certain day of the week; a relief organization that may need to respond quickly online to a natural disaster. Some of these surges and spikes in traffic and demand can be planned for, but some cannot. In these scenarios, a dynamic load balancing algorithm will help ensure access to apps and resources when customers and users need them most.
Different types of load balancers with different capabilities reside in the architecture called the Open System Interconnection (OSI) model. In this model are seven layers. Network firewalls are at levels one to three (L1-physical wiring, L2-data link and L3-network). Meanwhile, load balancing happens at layers four to seven (L4-transport, L5-session, L6-presentation and L7-application). Load balancers are generally used at Layer 4 and Layer 7.
Cloud-based load balancers are not just traffic controllers for spikes in traffic and for optimizing server use. Cloud-native load balancers can also provide predictive analytics to help you visualize traffic bottlenecks before they happen. That in turn delivers actionable insights to help any company optimize its IT solutions.
Application Load Balancing: As enterprises rely more and more on application performance and availability, application load balancing can help them scale, streamline operations, and save money.
Global Server Load Balancing: With users and customers around the world, companies can enhance their load availability with global server load balancing, which sends users to the nearest endpoint to them.
DNS Load Balancing: The practice of configuring a domain in the Domain Name System (DNS) so that user requests to the domain are distributed across a group of server machines is called DNS load balancing.
Network Load Balancing: Application delivery controllers (ADCs), physical or virtual appliances functioning as proxies for physical servers, manage application or network functions, and rely on a network load balancing solution to support them.
HTTP(S) Load Balancing: The technique for distributing traffic across multiple web or application server groups to optimize resource utilization is called HTTP(S) load balancing.
Internal Load Balancing: An internal load balancer is assigned to a private subnet and does not have a public IP. It typically works within a server farm.
Diameter: A diameter load balancer distributes signaling traffic across multiple servers in a network. One of the most cost-effective ways to do this is to scale the diameter control plane rather than the data transport layer. (Diameter load balancing can also be static or dynamic.)
There are other types of load balancer solutions, which can be used alone or in a network with cloud-native load balancers. Here are some notable types.
Hardware Load Balancer: A hardware load balancer is a physical device with a specialized operating system that can be programmed to distribute web traffic across several application servers, usually on-premises.
Software Load Balancer: A software load balancer operates like a physical load balancer, but it runs on software programs. The software keeps apps available through all kinds of traffic demands, using both static and dynamic load balancing to eliminate single points of failure.
Virtual Load Balancer: A type of load balancer that combines hardware and software load balancers is a virtual load balancer. It uses application delivery controller software that helps to distribute network traffic load among hardware backend servers.
Finding the right load balancer for your organization’s needs is critical to keeping your systems available and optimized, your data accessible, and your users and customers happy.
F5 can address your organization’s specific load balancer needs, from a static solution to an integrated, global solution that combines the strengths of hardware, software, and cloud-based load balancers. F5 has a load balancing algorithm or solution for your unique business needs.
BIG-IP application services provide an integrated solution to manage, scale, and optimize your digital application services. And BIG-IP Local Traffic Manager (LTM) includes static and dynamic load balancing to eliminate single points of failure. F5 BIG-IP DNS takes load balancing across applications and applies it globally, ensuring that your applications are on and responding to your customer’s needs.
F5 Distributed Cloud DNS Load Balancer delivers a simple load-balancing solution with reliable disaster recovery, so your development teams can focus on helping your business innovate.
F5 Distributed Cloud App Connect helps enable load balancing by securely connecting your apps and services across any type of environment, including the edge.
F5 offers a comprehensive suite of load balancing solutions to keep your apps, traffic, data, and compute surface optimized.
Load Balancing Your Applications ›
What Is a Diameter Load Balancer? ›
Load Balancing on AWS: Know Your Options ›
Load Balancing 101: The Evolution to ADCs ›