{"id":25512,"date":"2025-10-15T09:57:44","date_gmt":"2025-10-15T07:57:44","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=25512"},"modified":"2026-06-17T11:46:43","modified_gmt":"2026-06-17T09:46:43","slug":"what-is-a-load-balancer-how-to-set-it-up","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/what-is-a-load-balancer-how-to-set-it-up\/","title":{"rendered":"What is a Load Balancer? How It Works, Types &amp; Benefits (2026 Guide)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer.webp\" alt=\"What is a Load Balancer? How It Works, Types &amp; Benefits (2026 Guide)\" class=\"wp-image-31604\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer.webp 1200w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer-600x315.webp 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer-768x403.webp 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>A load balancer is a system that distributes incoming network traffic across multiple servers so no single server gets overwhelmed. It improves performance, keeps applications available when a server fails, and lets you scale by adding more servers. Load balancers come in hardware and software forms, operate at Layer 4 or Layer 7, and use algorithms like round robin and least connections to decide where each request goes.<\/p>\n\n\n\n<p>If your website or application is growing, one server eventually becomes the bottleneck, and visitors see slow pages or errors. A load balancer solves this through load balancing: it sits in front of several servers and spreads requests across them. This guide explains what a load balancer is, what load balancing does, how it works, the types, and how to set one up.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-a-load-balancer\">What Is a Load Balancer?<\/h2>\n\n\n\n<p>A load balancer is a device or piece of software that receives client requests and forwards them to one of several backend servers. Each backend runs a copy of your application, so any of them can answer a request, and the load balancer stops sending traffic to servers that are down. The simplest load balancer definition: it is a traffic director that spreads visitors across a pool of servers that grows with demand.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-58ce5ff6\"><h3 class=\"uagb-heading-text\">What Does a Load Balancer Do?<\/h3><\/div>\n\n\n\n<p>The core use of a load balancer is request distribution, but it does more than split traffic. The purpose of a load balancer is to keep your application available no matter which backend answers. A load balancer health check probes each backend at a set interval and pulls failing servers out of rotation, which is what makes high availability work. SSL termination handles encryption and decryption centrally, freeing backends from that cost. A sticky session load balancer, using a session persistence setup, keeps a user on the same backend when session state lives on the server rather than in a shared store.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-dd84239f\"><h3 class=\"uagb-heading-text\">Why Load Balancers Matter in 2026<\/h3><\/div>\n\n\n\n<p>Load balancers keep performance and uptime steady under pressure. Picture an online store on a busy sales day: thousands of users arrive at once, and without a load balancer a single server can crash, causing lost revenue. By distributing requests, a high availability load balancer keeps the store reachable and reroutes around any failure. The load balancer benefits are clearest for platforms that cannot afford to go down:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>High-traffic websites, to prevent crashes and slowdowns<\/li>\n\n\n\n<li>Cloud applications, to maintain availability<\/li>\n\n\n\n<li>APIs and microservices, to optimize request handling<\/li>\n\n\n\n<li>E-commerce platforms, to handle peak traffic smoothly<\/li>\n\n\n\n<li>Streaming and gaming platforms, to reduce latency<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-cd618008\"><h2 class=\"uagb-heading-text\">How Does a Load Balancer Work?<\/h2><\/div>\n\n\n\n<p>Understanding how a load balancer works comes down to three steps. A client sends a request to the load balancer&#8217;s address, the load balancer selects a healthy backend using a configured algorithm, and that server processes the request and returns the response. Clients only ever see the balancer&#8217;s address while the backends stay private, which also improves security, and any server that fails its health check stops receiving new requests until it recovers.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-57dfc8bd\"><h3 class=\"uagb-heading-text\">Common Load Balancing Algorithms<\/h3><\/div>\n\n\n\n<p>The algorithm decides how a load balancer works at the moment of choosing a server, and most software load balancers let you pick one per backend pool. For the basics of round robin, least connections, and IP hash, our <a href=\"https:\/\/contabo.com\/blog\/beginners-guide-to-load-balancers\/\">beginners guide to load balancers<\/a> covers each. The table below adds the weighted and response-time variants.<\/p>\n\n\n\n<table style=\"width:100%; border-collapse:collapse; font-family:Arial, sans-serif; font-size:15px;\">\n  <thead>\n    <tr style=\"background-color:#0F4761; color:#ffffff; text-align:left;\">\n      <th style=\"padding:10px; border:1px solid #ccc; width:22%;\">Algorithm<\/th>\n      <th style=\"padding:10px; border:1px solid #ccc;\">How it works<\/th>\n      <th style=\"padding:10px; border:1px solid #ccc;\">Best for<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Round robin<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Sends each new request to the next server in order<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Backends with roughly equal capacity<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Weighted round robin<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Round robin, but stronger servers get a larger share<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Mixed hardware where some servers are bigger<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Least connections<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Routes to the server with the fewest active connections<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Long-lived connections of uneven length<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Weighted least connections<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Least connections adjusted for server capacity<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Uneven hardware with variable session length<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Least response time<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Picks the server answering fastest right now<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Latency-sensitive apps where speed varies<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">IP hash<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Maps a client IP to a fixed server<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Keeping a user on one server without cookies<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Random<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Selects a server at random, sometimes weighted<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Large pools where simple spread is enough<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<p>Round robin load balancing is the common default, weighted round robin load balancing helps when servers differ in size, and IP hash gives basic session stickiness.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-5837852f\"><h2 class=\"uagb-heading-text\">Types of Load Balancers<\/h2><\/div>\n\n\n\n<p>The main load balancer types split along two lines: how they are delivered (hardware or software) and what they read to make decisions (<a href=\"https:\/\/contabo.com\/blog\/layer-4-vs-layer-7-load-balancer\/\">Layer 4 or Layer 7<\/a>). On top of those sit cloud and global variants.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-d66fca84\"><h3 class=\"uagb-heading-text\">Hardware vs Software Load Balancers<\/h3><\/div>\n\n\n\n<p>A hardware load balancer is a physical appliance built to move traffic at high throughput with low latency. These devices are fast and reliable but expensive, and you provision capacity ahead of demand. A software load balancer runs as a program on a standard server or virtual machine, where tools like NGINX and HAProxy live. A virtual load balancer is the same idea packaged as a VM image you deploy yourself. Software options are flexible, cost-effective, and fit cloud and VPS environments well, which makes a software load balancer the practical choice for most websites.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-1d77c847\"><h3 class=\"uagb-heading-text\">Layer 4 vs Layer 7 Load Balancers<\/h3><\/div>\n\n\n\n<p>The split between an L4 load balancer and an L7 load balancer comes from the OSI model. A Layer 4 load balancer, also called a network load balancer, routes by IP address and TCP or UDP port without reading the traffic itself, which makes it fast and protocol-agnostic. A Layer 7 load balancer, often called an application load balancer, reads the request itself: the URL, headers, and cookies. That lets it route `\/api` traffic to one pool and `\/images` to another, terminate SSL, and apply content-based rules, at the cost of more processing per request. You can find more details in our article on <a href=\"https:\/\/contabo.com\/blog\/layer-4-vs-layer-7-load-balancer\/\">Layer 4 vs Layer 7 Load Balancers<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-d927cbf8\"><h3 class=\"uagb-heading-text\">Global Server Load Balancers (GSLB) and DNS Load Balancing<\/h3><\/div>\n\n\n\n<p>A global load balancer, or GSLB load balancer, distributes traffic across data centers in different regions rather than servers in one location, sending each user to the nearest or healthiest site so the service survives a whole-region outage. DNS load balancing is the most common way to do this: a DNS load balancer returns different IP addresses for one hostname based on location or server health.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-8200fb72\"><h3 class=\"uagb-heading-text\">Cloud Load Balancers<\/h3><\/div>\n\n\n\n<p>A cloud load balancer is a managed service from a hosting or cloud provider. Sometimes branded as load balancer as a service, it removes the work of installing and maintaining the balancer yourself. Load balancing in cloud computing usually means the provider runs and scales the balancer and bills it within your plan. The choice between a managed cloud balancer and a self-hosted one comes down to control versus convenience.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-c11ddcec\"><h2 class=\"uagb-heading-text\">Load Balancer vs Reverse Proxy vs API Gateway<\/h2><\/div>\n\n\n\n<p>These three terms overlap and often run on the same software, so the reverse proxy vs load balancer question and the API gateway vs load balancer line come up constantly. A reverse proxy forwards requests to backends and can add caching, compression, and SSL. A load balancer is a reverse proxy whose main purpose is spreading traffic across many backends with health checks. An API gateway adds authentication, rate limiting, and routing.<\/p>\n\n\n\n<table style=\"width:100%; border-collapse:collapse; font-family:Arial, sans-serif; font-size:15px;\">\n  <thead>\n    <tr style=\"background-color:#0F4761; color:#ffffff; text-align:left;\">\n      <th style=\"padding:10px; border:1px solid #ccc; width:22%;\">Tool<\/th>\n      <th style=\"padding:10px; border:1px solid #ccc;\">Primary job<\/th>\n      <th style=\"padding:10px; border:1px solid #ccc;\">Typical extras<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Reverse proxy<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Forward requests to a backend<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Caching, SSL, compression<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Load balancer<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Spread traffic across many backends<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Health checks, algorithms, failover<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">API gateway<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Manage and secure API traffic<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Auth, rate limiting, request transformation<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<p>In practice one tool such as NGINX can act as all three. The distinction is about intent.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-31fd4651\"><h2 class=\"uagb-heading-text\">Horizontal vs Vertical Scaling: Where Load Balancers Fit<\/h2><\/div>\n\n\n\n<p>When an application outgrows its server, you have two ways to add capacity, and the horizontal vs vertical scaling decision shapes whether you need a load balancer.<\/p>\n\n\n\n<table style=\"width:100%; border-collapse:collapse; font-family:Arial, sans-serif; font-size:15px;\">\n  <thead>\n    <tr style=\"background-color:#0F4761; color:#ffffff; text-align:left;\">\n      <th style=\"padding:10px; border:1px solid #ccc; width:22%;\">Approach<\/th>\n      <th style=\"padding:10px; border:1px solid #ccc;\">What you do<\/th>\n      <th style=\"padding:10px; border:1px solid #ccc;\">Load balancer needed?<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Vertical scaling<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Add CPU, RAM, or disk to one server<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">No, it is still one machine<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"padding:10px; border:1px solid #ccc; font-weight:bold; background-color:#f5f7fa;\">Horizontal scaling<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Add more servers to share the load<\/td>\n      <td style=\"padding:10px; border:1px solid #ccc;\">Yes, to distribute traffic across them<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<p>Vertical scaling is simpler but has a ceiling and remains a single point of failure. Horizontal scaling has no hard ceiling and removes that single point of failure, but only if something distributes traffic across the new servers: the load balancer.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-34b7ad8a\"><h2 class=\"uagb-heading-text\">When Do You Need a Load Balancer?<\/h2><\/div>\n\n\n\n<p>Knowing when to use a load balancer comes down to two triggers: a single server can no longer handle your traffic reliably, or downtime becomes too costly to risk one machine failing. Common load balancer use cases include high-traffic websites, APIs serving many clients, and microservices, where a load balancer routes requests to healthy instances and lets you deploy updates without downtime.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-ce0bc767\"><h2 class=\"uagb-heading-text\">Choosing the Right Load Balancer for Your Hosting Setup<\/h2><\/div>\n\n\n\n<p>Choosing the best load balancer starts with where it will run and how much traffic it handles. A few options dominate in practice. <a href=\"https:\/\/contabo.com\/blog\/nginx-configuration-beginners-guide\/\">NGINX<\/a> is widely used for web applications, being lightweight, powerful, and free. HAProxy delivers enterprise-grade performance for high-demand environments, and for global redundancy a DNS-based service such as Cloudflare&#8217;s load balancer distributes traffic worldwide. A load balancer for a VPS is the common case: a software load balancer such as NGINX or HAProxy on its own instance gives you a capable web server load balancer for very little cost, and VPS load balancing scales as you add backends. You can explore other available options in our article <a href=\"https:\/\/contabo.com\/blog\/best-open-source-load-balancers\/\">Best Open Source Load Balancers in 2026<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-f955f7c9\"><h2 class=\"uagb-heading-text\">How to Set Up a Load Balancer with NGINX<\/h2><\/div>\n\n\n\n<p>Setting up NGINX as a load balancing system involves a few straightforward steps. Here\u2019s a basic example to distribute traffic between two&nbsp;<a href=\"https:\/\/contabo.com\/blog\/wiki\/backend\/\">backend<\/a>&nbsp;servers:&nbsp;<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Install NGINX:<\/strong>&nbsp;<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt install nginx -y&nbsp;<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Edit the NGINX configuration file:<\/strong>&nbsp;<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/nginx\/nginx.conf&nbsp;<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Define backend servers in the configuration:<\/strong>&nbsp;<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/contabo.com\/blog\/wiki\/http\/\">http<\/a> { upstream backend_servers { server 192.168.1.101; # Backend Server 1 server 192.168.1.102; # Backend Server 2 }&nbsp;\nserver {&nbsp;\n&nbsp;&nbsp;&nbsp; listen 80;&nbsp;\n&nbsp;&nbsp;&nbsp; location \/ {&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass <a href=\"http:\/\/backend_servers\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">http:\/\/backend_servers<\/a>;&nbsp;\n&nbsp;&nbsp;&nbsp; }&nbsp;\n}&nbsp;\n&nbsp;&nbsp;\n}&nbsp;<\/code><\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Restart NGINX to apply changes:<\/strong>&nbsp;<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart nginx&nbsp;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"watch-our-youtube-video-walkthrough-5\">Watch Our YouTube Video Walkthrough&nbsp;<\/h2>\n\n\n\n<p>You can also follow along visually with our step-by-step tutorial on our YouTube:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"What is a load balancer and how to set it up\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/KePdD8RdgvY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-413660b4\"><h2 class=\"uagb-heading-text\">Load Balancing on Contabo VPS<\/h2><\/div>\n\n\n\n<p>There is no dedicated Contabo load balancer product available at this moment. The practical route today is to run a software load balancer such as NGINX on one VPS and point it at two or more backend instances, exactly as shown in the NGINX setup above. Add backend instances as your traffic grows, and the same upstream configuration scales with them. This gives you full control over the algorithm, health checks, and SSL handling on infrastructure you already manage.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-a3ea003b\"><h2 class=\"uagb-heading-text\">Conclusion<\/h2><\/div>\n\n\n\n<p>A load balancer turns a single fragile server into a resilient pool, spreading traffic so your application stays available as it grows. Match the type to your needs: software for flexibility, Layer 7 for content-aware routing, GSLB for multiple regions. Decide whether you are scaling up or out, and the right load balancer follows from there.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-fb5819ce\"><h2 class=\"uagb-heading-text\">Load Balancer FAQ<\/h2><\/div>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1780475559522\"><strong class=\"schema-faq-question\">What is a load balancer in simple terms?<\/strong> <p class=\"schema-faq-answer\">A load balancer is a traffic director that sits in front of several servers and decides which one answers each request. It spreads the work so no single server gets overwhelmed, and skips any server that is down. The result is a site that stays online even during traffic spikes or a server failure.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1780475587481\"><strong class=\"schema-faq-question\">What are the main types of load balancers?<\/strong> <p class=\"schema-faq-answer\">The main types split by delivery and by network layer. By delivery, you have hardware appliances and software load balancers (including virtual ones). By layer, Layer 4 (network) balancers route by IP and port, while Layer 7 (application) balancers route by URL and headers. Cloud and global server (GSLB) balancers build on these for managed and multi-region setups.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1780475600342\"><strong class=\"schema-faq-question\">Is NGINX a load balancer?<\/strong> <p class=\"schema-faq-answer\">NGINX is a web server and reverse proxy that can also act as a load balancer. Using its upstream module, it distributes requests across multiple backends with algorithms like round robin and least connections. It serves as more than a load balancer, yet it is widely used as one, especially as a software load balancer on a VPS.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1780475611378\"><strong class=\"schema-faq-question\">Do I need a load balancer for a single VPS?<\/strong> <p class=\"schema-faq-answer\">Usually not. A load balancer earns its place once you run more than one server, or need to remove a server without downtime. On a single VPS there is only one backend, so there is nothing to balance. The time to add one is when you are about to add a second server.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>A load balancer spreads incoming traffic across multiple servers so no single server gets overwhelmed. This guide explains what a load balancer is, how it works, the main types, and how to set one up.<\/p>\n","protected":false},"author":77,"featured_media":31604,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[],"ppma_author":[3116,1489],"class_list":["post-25512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer.webp",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer-150x150.webp",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer-600x315.webp",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer-768x403.webp",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer.webp",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer.webp",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2026\/06\/blog-head_what-is-a-load-balancer.webp",1200,630,false]},"uagb_author_info":{"display_name":"Anika Kopte","author_link":"https:\/\/contabo.com\/blog\/author\/anika\/"},"uagb_comment_info":0,"uagb_excerpt":"A load balancer spreads incoming traffic across multiple servers so no single server gets overwhelmed. This guide explains what a load balancer is, how it works, the main types, and how to set one up.","authors":[{"term_id":3116,"user_id":77,"is_guest":0,"slug":"anika","display_name":"Anika Kopte","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/1c425caa652c679ae47e3f85a48de4e19f09d37bcb5593ba88a7aa4a08bb1d81?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Kopte","first_name":"Anika","job_title":"","description":""},{"term_id":1489,"user_id":65,"is_guest":0,"slug":"julia-mink","display_name":"Julia Mink","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/26ce5d4ae17d160425d842da4ea00c56716ffb5d4c58ee0cfb73de57b1de5272?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Mink","first_name":"Julia","job_title":"","description":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/25512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=25512"}],"version-history":[{"count":7,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/25512\/revisions"}],"predecessor-version":[{"id":31607,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/25512\/revisions\/31607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/31604"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=25512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=25512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=25512"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=25512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}