Load Balancing

HAProxy – high-performance load balancer and proxy server

HAProxy is a high-performance load balancer and proxy server for TCP and HTTP-based applications. It distributes incoming connections and requests across multiple backend servers, helping services maintain availability and responsiveness under heavy traffic.

The software is widely used as an entry point for websites, APIs and other network services. Its event-driven architecture is designed to handle large numbers of concurrent connections efficiently while providing detailed control over traffic distribution.

HAProxy combines load balancing with health monitoring, connection management and security policies. It also offers an integrated HTTP response cache for selected content, although caching is a secondary capability rather than the software’s primary purpose.

This is free and open source software.

Key Features

  • Layer 4 and Layer 7 load balancing – distributes TCP connections and HTTP requests across backend servers.
  • Multiple balancing algorithms – supports round-robin, least-connections, source hashing and other distribution methods.
  • Backend health checks – detects unavailable servers and adjusts traffic routing automatically.
  • HTTP response caching – stores eligible responses in shared memory using configurable cache filters.
  • Cache policies – controls cache size, maximum object size, retention and conditional caching.
  • High availability – supports redundant proxy configurations and graceful server maintenance.
  • TLS termination – handles encrypted connections and certificate management.
  • Access control lists – applies routing, security and traffic-handling rules based on request characteristics.
  • Session persistence – keeps related requests associated with appropriate backend servers.
  • Rate limiting – controls request rates and connection activity using stick tables and access policies.
  • HTTP manipulation – modifies headers, redirects requests and rewrites selected traffic.
  • PROXY protocol – forwards original client connection information between compatible network components.
  • Connection management – provides configurable timeouts, retries and connection limits.
  • Observability – exposes statistics, health information and detailed request logs.
  • Runtime administration – supports operational changes through its administrative interface.

Website: www.haproxy.org
Support:
Developer: Willy Tarreau and contributors
License: GNU General Public License v2.0 with OpenSSL exception

HAProxy

HAProxy is written in C. Learn C with our recommended free books and free tutorials.


Related Software

Load Balancers
TraefikModern HTTP reverse proxy and load balancer
HAProxyHigh availability layer 7 load balancer and proxy server for TCP and HTTP
CiliumeBPF-based Networking, Observability, Security
nginxIncludes a L7 load balancer
RoadRunnerHigh-performance PHP application server, load balancer, and process manager
fabioFast, modern, zero-conf load balancing HTTP(S) and TCP router
BFEModern L7 load balancer
EnvoyHigh-performance edge and service proxy built for cloud-native applications
APISIXReal-time API gateway with routing, security and extensive plugin support
gobetweenModern and minimalistic L4 load balancer and reverse-proxy
MetalLBAdds external network service support to bare-metal Kubernetes clusters
SeesawLinux Virtual Server (LVS) based load balancing platform. L4 load balancer
SkipperHTTP router and reverse proxy with flexible filters and route matching
LoxiLBCloud-native networking proxy with eBPF acceleration and observability
kube-vipProvides virtual IPs and service networking across Kubernetes clusters
nusterHigh-performance HTTP proxy cache server and HTTP/TCP load balancer
GLB DirectorSet of stateless L4 load balancer servers
BalanceGeneric TCP proxy with round robin load balancing and failover capabilities

Read our verdict in the software roundup.

Web Caches
VinylWeb accelerator written with performance and flexibility in mind
HAProxyHigh availability load balancer and proxy server
nginxVery powerful and efficient web server and reverse proxy
Traffic ServerHigh-performance building block for cloud services
SquidHigh-performance proxy caching server and web cache daemon
EnvoyHigh performance edge and service proxy
Apache APISIXDynamic API gateway with load balancing and traffic management
ApacheHugely popular web server with caching modules
SouinHTTP cache system

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted