Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
Networking

Hardware, software or managed load balancer: how to choose

Hardware, software or managed load balancer? Compare throughput, TLS, features, high availability and cost models, then pick the form that fits your servers.

CloudSat teamNovember 18, 20266 min read
Abstract illustration of a heavy metal box, a floating code window and a soft cloud shape, each splitting one beam of light into several
On this pageWrite down what the balancer must do

The algorithm decides where each request goes. The form of the load balancer decides how much traffic it can take, what it costs over three years and who fixes it at night. In practice there are four forms: dedicated appliances, software running on ordinary servers, load balancing inside the Linux kernel, and managed balancers sold by the large clouds. Where your servers live narrows the choice before any feature comparison starts.

Write down what the balancer must do

Requirements decide this choice, not product categories. Answer these first:

  • Traffic. Peak requests or new connections per second, and peak bandwidth.
  • TLS. Whether the balancer terminates TLS, and how many new handshakes per second that means at peak.
  • Layer. Layer 4 (forwarding TCP or UDP connections) or layer 7 (reading HTTP to route by host, path or header, rewrite headers, compress, cache).
  • Availability. What happens when the balancer itself fails, and how quickly traffic must move to a standby.
  • Location. Your own data center, one cloud, several providers or several regions.
  • Operations. Who updates it, who reads its logs and who gets paged.

The four forms side by side

Form Examples Strengths Limits Cost model
Hardware appliance F5 BIG-IP, NetScaler, A10 Thunder Very high throughput, TLS acceleration, one vendor for support Needs a rack; capacity fixed at purchase; refresh cycles Purchase, licenses by throughput tier, support contract
Software on a server HAProxy, NGINX, Envoy, Traefik, Caddy Runs anywhere, full layer 7, configuration in Git You run availability and updates; limited by the server's CPU and network Free open-source editions, optional paid support
Kernel layer 4 IPVS with keepalived, eBPF and XDP balancers such as Katran or Cilium Huge packet rates at low CPU cost Layer 4 only; needs control over routing Free, paid in networking skills
Managed cloud balancer AWS Elastic Load Balancing, Google Cloud Load Balancing, Azure Load Balancer and Application Gateway No servers to run; scaling and redundancy built in Tied to that cloud; less control over behavior Per hour, plus usage units for connections, traffic or rules

Between the first two sits the virtual appliance: a vendor's appliance software sold as a VM image, with the same features and licenses but no box. It suits teams that know an appliance's configuration language and want it in a cloud.

When an appliance earns its rack space

Appliances still make sense in your own data center when traffic is very high and steady, when TLS handshake rates would occupy several general-purpose servers, or when one vendor contract should cover balancing, a web application firewall and global DNS steering together. Some regulated environments also require cryptographic modules certified to standards such as FIPS 140, which several appliance models include.

The costs are structural. Capacity is bought ahead of need, licenses are often tied to throughput tiers, and every few years the hardware reaches end of support and the cycle starts again. An appliance also cannot follow workloads into a public cloud.

Why software wins on rented servers

On a VPS or in any public cloud, you cannot install hardware, and software balancers are the natural fit. They run on the same kind of server as the application, their configuration lives in a repository, and the same tool can run in staging and production. A small VPS running HAProxy or NGINX carries more traffic than most small and medium sites ever send it; TLS is the expensive part, and ECDSA certificates cut its CPU cost compared with RSA.

Layer 4 balancing in software is short to configure. This NGINX stream block, placed at the top level of nginx.conf outside the http block, passes TLS connections through to two backends untouched (on Debian and Ubuntu the module ships as the libnginx-mod-stream package):

stream {
    upstream tls_backends {
        least_conn;
        server 198.51.100.21:443 max_fails=3 fail_timeout=10s;
        server 198.51.100.22:443 max_fails=3 fail_timeout=10s;
    }

    server {
        listen 443;
        proxy_pass tls_backends;
    }
}

Kernel balancers go further on packet rates, but they assume you control routing between the balancer and the backends, for example with direct server return on a shared network segment. That is normal in your own data center or on bare metal, and rarely available between ordinary VPS servers.

On CloudSat, HAProxy and NGINX are one-click apps, and every server sits behind DDoS filtering on 40 Gbps host uplinks, so a pair of small balancers sharing a floating IP is a practical front door for most sites.

Managed balancers: someone else's servers

A managed balancer removes the servers from your list entirely. The cloud runs it across several zones, scales it with traffic and often handles certificates. The bill has two parts, an hourly fee and usage units measured in new connections, active connections, processed traffic or rule evaluations, so it grows with success.

The limits come from the same source. A managed balancer mostly fronts servers in its own cloud, its behavior is what the product exposes, and migrating means rebuilding routing rules in another system. For a workload already committed to that cloud, it is usually the right answer.

The balancer needs a standby too

Every form has to answer what happens when the balancer fails:

  • Appliances come in active and standby pairs that share connection state.
  • Software balancers run as two identical servers with an address that moves between them, as shown in our guide to two web servers behind HAProxy.
  • Managed balancers include redundancy across zones in the price.
  • Across regions, all of them rely on DNS that checks health and answers with a working site, or on anycast, which few small teams run themselves. DNS answers are cached for the record's TTL, so keep it short on records you may need to move.

Decide in one pass

If your situation is Choose
Servers on VPS or bare metal, small team Two software balancers with a floating IP
Everything inside one large cloud That cloud's managed balancer
Your own data center, very high steady traffic Appliances, or kernel layer 4 in front of software layer 7
Several providers or regions Health-checked DNS in front of a software balancer per site
Strict certified-hardware requirements Appliances with the required certification

FAQ

Is a software load balancer slower than an appliance?

Per box, the largest appliances move more traffic, largely thanks to dedicated hardware for packets and TLS. Per dollar, software on general-purpose servers is usually far ahead, and it scales out by adding another server. For most sites, the balancer is not where the bottleneck sits.

Can a managed cloud balancer front servers at another provider?

Some can send traffic to IP addresses outside their own cloud, typically over a VPN or a private interconnect, and some offer options for internet-facing external backends. It works, but you pay that cloud's data transfer on every response, and you add a dependency on two providers instead of one.

How do I balance traffic across two regions?

Run a balancer in each region and put health-checked DNS in front of them, so a failed region drops out of the answers. Keep the TTL short, and decide in advance how the database behaves when one region is gone, because that is where multi-region designs usually get complicated.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.