Fact-checked by Grok 2 weeks ago

HAProxy

HAProxy is a free, application that functions as a reliable, high-performance and HTTP load balancer and , offering , load balancing, and proxying for applications.[] It is designed to handle high-traffic environments efficiently, supporting features like , multi-threading, and robust security measures including isolation and strict protocol validation.[] Developed initially as a personal project, HAProxy was created by Willy Tarreau in 1999 under the name Zprox for testing application performance over low-bandwidth connections, and it was renamed and released as HAProxy version 1.0 in 2001 to address the limitations of hardware-based load balancers at the time.[] Over the years, HAProxy has evolved into a open-source load balancer, with two major versions released annually since 1.8,[] incorporating advancements such as HTTP Keep-Alive support in 1.4, SSL termination in 1.5, multithreading in 1.8, and in 1.9.[] The project is maintained under a model, with versions like the latest LTS release 3.2 (May 2025) supported until 2030, ensuring stability for enterprise use.[] Licensed openly and included in most distributions, HAProxy is hosted on with active community contributions and rigorous testing.[] It powers numerous high-profile deployments, including Airbnb's SmartStack system, Adobe Advertising Cloud's handling of hundreds of billions of daily requests across global locations, and Alibaba's scalable CDN infrastructure serving a significant portion of China's online commerce.[]

Background

Overview

HAProxy is a , open-source TCP/HTTP load balancer and software written in C. It is licensed under the GNU General Public License version 2 or any later version. As a high-performance solution, HAProxy enables reliable traffic distribution and management for modern applications. The software's primary functions include providing , load balancing, and proxying for TCP- and HTTP-based applications. It supports features such as SSL termination to offload tasks from backend servers and acts as a to protect and route traffic to web servers efficiently. HAProxy is widely used for handling high-traffic websites, including for scalable load balancing, across its server infrastructure, and to support rapid traffic growth. At its core, HAProxy operates as an event-driven, non-blocking daemon that employs event multiplexing to achieve efficiency in managing concurrent connections without blocking I/O operations.

History

HAProxy was created in 1999 by Willy Tarreau, a prominent contributor, as a personal project called Zprox to meet load balancing requirements at a French web hosting provider where hardware solutions were proving unreliable. The first public release, version 1.0, occurred on December 16, 2001, initially serving as an emergency workaround to offload failing load balancers during benchmarks. This early version focused on basic proxying and HTTP header rewriting, with subsequent updates like version 1.1 introducing essential load balancing features such as algorithms, health checks, and insertion. During the 2000s, HAProxy gained significant popularity for its reliability in handling high-traffic environments, particularly among hosting providers and web infrastructure teams, as its supported thousands of concurrent connections without blocking. By the mid-2000s, it had been integrated into major distributions, including (starting with version 1.2 in 2003) and 6 (2010), facilitating broader adoption in enterprise settings. In 2013, HAProxy Technologies, LLC was established to provide commercial support, enterprise editions, and hardware appliances based on the open-source project, marking a shift from purely community-driven development to a hybrid model that sustained growth. Key milestones include the introduction of multi-processing enhancements in version 1.5 development (2010), with stable release on June 19, 2014, which improved for SSL and workloads, and the full multi-threading support in version 1.8 (November 2017), enabling up to 2.5 times faster performance on multi-core systems. In the , HAProxy advanced protocol support with integration in version 1.8 and experimental QUIC/ capabilities starting in version 2.5 (2021), positioning it for modern web standards like reduced in high-availability setups. Subsequent LTS releases include 3.0 in May 2024 and 3.2 in May 2025, supported until 2029 and 2030 respectively. The project's community expanded steadily, with the first external contribution arriving in and ongoing open-source involvement from developers worldwide, fostering innovations through mailing lists and peer reviews. Annual user conferences, HAProxyConf, began in 2019 to unite this ecosystem, featuring talks on deployments at scale and emerging features.

Functionality

Core Capabilities

HAProxy employs several load balancing s to distribute incoming traffic across backend s, ensuring efficient resource utilization and . The sequentially forwards requests to each in a cyclic manner, making it suitable for environments where s have comparable processing capacities. In contrast, the leastconn directs new connections to the with the fewest active connections, which is particularly effective for applications with variable connection durations. The source hashes the client's to consistently route traffic from the same client to a specific , promoting session persistence but potentially leading to uneven loads if clients geographically. Similarly, the URL hash computes a from the requested to select a backend, ideal for caching scenarios where the same content should always reach the same . The static-rr functions like but operates without dynamic adjustments to load, providing a predictable distribution in static setups. HAProxy supports a wide range of protocols to handle diverse network traffic. It provides full proxying for Layer 4 operations, enabling load balancing for any TCP-based application without inspecting payload contents. For HTTP traffic, it natively handles HTTP/1.x, including request validation, header manipulation, and persistence via cookies or headers. support allows of requests over a single connection, with features like stream-level inspection and integration, which leverages for remote procedure calls. is supported via for improved performance on unreliable networks, particularly benefiting mobile clients. WebSocket connections are proxied transparently within HTTP mode, maintaining persistent bidirectional communication for real-time applications. is fully accommodated through , enabling efficient RPC handling with HAProxy's HTTP processing capabilities. In TCP mode, operating at Layer 4, HAProxy forwards traffic based on and without payload inspection, supporting protocols like databases or custom services while applying health checks and rate limits. HTTP mode, at Layer 7, enables deep inspection of application-layer data, allowing modifications such as header additions, redirects, and authentication. Content switching in HTTP mode uses access control lists (ACLs) to route requests dynamically based on criteria like paths, HTTP methods, headers, or client , facilitating intelligent traffic direction to appropriate backends. ACLs evaluate conditions with operators for matching patterns, such as string comparisons or regular expressions, and combine via logical AND, OR, or NOT for complex routing rules. Health checks in HAProxy monitor backend availability through active and passive methods. Active checks proactively probe at configurable intervals, defaulting to 2 seconds, using connections or HTTP requests to verify responsiveness. Thresholds define triggers, with a default of 3 consecutive failures (fall) to mark a server down and 2 successes (rise) to reinstate it, adjustable for sensitivity. Passive checks observe real-time traffic errors, such as connection timeouts or HTTP status codes outside 200-399, accumulating failures up to a limit before marking unavailable, complementing active monitoring without additional probes. For , HAProxy implements by designating backup servers that activate when primary ones fail health checks, ensuring seamless traffic redirection. Multiple backups can engage simultaneously via the allbackups option during widespread outages. Stickiness, or session persistence, maintains client-server affinity using HTTP cookies—inserted or read from requests—or hashing, preventing disruptions in stateful applications. caps connections or requests per client, using sliding windows (e.g., requests over 10 seconds) or fixed periods, enforced via stick-tables tracking rates and denying excess traffic to mitigate overloads. Security basics in HAProxy include SSL/TLS termination, where it decrypts incoming encrypted traffic to offload computational burden from backends, supporting re-encryption to servers if needed. (SNI) enables hosting multiple TLS certificates on one , selecting the appropriate one based on the during the TLS for . Basic access controls leverage ACLs for whitelisting or HTTP basic , prompting credentials via userlists and denying unauthorized access.

Configuration

HAProxy configuration is managed through a single text-based file, typically named haproxy.cfg, which defines the behavior of the load balancer instance. The file is structured into distinct sections that organize settings hierarchically, ensuring clarity and modularity. The global section, which must appear first, sets process-wide parameters such as the maximum number of concurrent connections (maxconn), user and group ownership, and logging options, applying to the entire HAProxy process. The defaults section provides baseline configurations for all subsequent proxy sections, including timeouts, logging formats, and protocol modes like HTTP or TCP, which can be overridden in specific blocks. Following these are proxy definitions: frontend sections handle incoming client connections by specifying bind addresses and initial routing rules; backend sections define server pools with load balancing algorithms and health checks; and listen sections combine frontend and backend functionalities into a single block for simpler TCP-based setups. Key directives within these sections enable precise control over traffic handling. The bind directive in frontend or listen sections specifies the and for listening, supporting features like SSL termination (e.g., bind *:443 ssl crt /etc/ssl/certs). In backend sections, the server directive lists upstream s, including options for limits and checks (e.g., server srv1 192.168.1.10:80 maxconn 32 check). Routing logic is implemented using lists (ACLs) via the acl directive to match conditions like paths (e.g., acl is_api path_beg /api), combined with use_backend to direct traffic to appropriate pools (e.g., use_backend api_servers if is_api). These snippets illustrate basic usage but require adaptation to specific environments, always ensuring directives align with the chosen protocol mode set in defaults or individual sections. Runtime management allows dynamic adjustments without service interruption. The stats socket directive in the global section creates a Unix socket (e.g., stats socket /var/run/haproxy.sock mode 660 level admin) for and , enabling commands like show stat for metrics or disable server for via tools such as socat. Reloading configurations is achieved through a soft restart using haproxy -f haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid), which preserves active connections and states by loading prior session data with directives like load-server-state-from-file [global](/page/Global). This approach supports seamless updates in , minimizing to near zero. Deployment options cater to varying scales and environments. By default, HAProxy operates in single-process mode for simplicity, but multi-process configurations use nbproc for multiple worker processes or nbthread for threading within a single process (e.g., nbproc 4 or nbthread 4), enhancing concurrency on multi-core systems while requiring careful tuning to avoid overhead. Integration with involves a file like /etc/systemd/system/haproxy.service that handles starting, stopping, and reloading, often with the master-worker mode for automatic restarts. In containerized setups like , HAProxy runs via the official image, mounting the config file (e.g., -v /path/to/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro) and using variables such as HAPROXY_CFGFILES for multi-file support, ensuring portability across hosts. Common pitfalls in configuration include resource mismanagement and operational blocks. Blocking operations, such as synchronous external , can halt the event loop and degrade performance; best practices recommend asynchronous alternatives or offloading to external tools to maintain non-blocking I/O. Tuning maxconn is essential to align with system limits like file descriptors (defaulting to 1048576 via fd-hard-limit), preventing connection queuing or failures under load—start with conservative values like 2000 per frontend and scale based on . Overlooking these can lead to exhaustion of ulimits or memory, so regular validation against hardware constraints is advised. Before deployment, configurations must be validated for syntax errors. The command haproxy -c -f haproxy.cfg parses the file without starting the process, reporting issues like missing directives or invalid parameters, allowing iterative fixes without runtime impact. This dry-run capability, combined with the structured file format, facilitates reliable setup and maintenance.

Products and Editions

Community Edition

The HAProxy Community Edition is the open-source version of the software, released under the GNU General Public License version 2 or any later version, which allows free use, modification, and distribution provided that derivative works adhere to the same terms. This licensing model has enabled widespread accessibility since the project's inception. The software is distributed through multiple channels, including direct downloads from the official website (haproxy.org), the repository for source code and development branches, and integration into major package managers such as apt for Debian-based systems and yum/dnf for Red Hat-based distributions. Community support for the edition is robust and volunteer-driven, primarily through the [email protected] for discussions and announcements, IRC channels on (#haproxy), the HAProxy workspace, and the forum for configuration sharing and troubleshooting. Comprehensive documentation, including configuration manuals and starter guides, is freely available at docs.haproxy.org, while contributions from developers worldwide are encouraged via pull requests on the repository. The Community Edition includes all core functionalities of HAProxy, such as and HTTP load balancing, reverse proxying, features, SSL/TLS termination, and built-in monitoring tools like statistics pages and , without any commercial add-ons or restrictions on these essential capabilities. While it provides community-maintained including backported security fixes to LTS versions, it lacks commercial guarantees, extended backporting timelines, or access to proprietary modules, relying on upstream releases from the community-maintained branches. Adoption of the Community Edition is extensive, powering high-traffic websites and services for organizations including , , and , where it handles billions of daily requests and is pre-shipped in most major distributions and cloud platforms.

HAProxy Enterprise

HAProxy Enterprise is a subscription-based commercial edition of the HAProxy load balancer developed by HAProxy Technologies, extending the open-source core with enterprise-grade modules, enhanced security, and to support large-scale deployments. Built on HAProxy 3.2 LTS (released May 2025, supported until 2030). It builds on the community edition's foundation by incorporating proprietary add-ons such as runtime APIs and advanced tools, enabling organizations to manage high-traffic applications with greater reliability and efficiency. Key exclusive features include the Data Plane API (DPA), which provides a RESTful interface for dynamic configuration and automation of load balancing, gateway functions, service discovery, and SSL termination without restarting the proxy. The integrated (WAF) offers intelligent threat detection with 98.48% accuracy, zero-day protection via customizable profiles, and integration with the Global Profiling Engine (GPE) for real-time analytics on client behavior, automated , and . Additionally, it delivers backported security fixes and modules for features like load balancing, ensuring compatibility and stability across environments. Support options emphasize professional assistance, with 24/7 availability through a customer portal, email, , and phone, including up to five authorized contacts per account. Service Level Agreements (SLAs) guarantee response times of 30 minutes for critical issues, two days for moderate ones, and three days for informational queries, complemented by consultative guidance during and dedicated training programs. Long-term support (LTS) for even-numbered versions extends up to five years, including maintenance updates and security patches to maintain compliance and operational continuity. The product integrates seamlessly with major cloud platforms such as AWS and via marketplace images and auto-scaling support, as well as orchestration tools like for automated and deployment playbooks. Pricing follows a subscription model based on per-core or per-instance licensing, tailored to infrastructure scale, with a free trial offering full access to all features without performance restrictions to facilitate evaluation. HAProxy Enterprise is widely adopted by large enterprises for its scalability in handling massive traffic volumes, compliance with standards through audited modules, and robust capabilities, as demonstrated in deployments by companies like Yammer and for optimized application delivery and .

Load Balancers

HAProxy ALOHA is a line of plug-and-play load balancer appliances developed by HAProxy Technologies, available in both physical hardware and virtual editions, designed to simplify high-availability using the software at its core. Built on HAProxy 3.2 LTS (released May 2025, supported until 2030). These appliances provide solutions for distributing workloads across servers, supporting essential functions like reverse proxying and traffic routing without requiring extensive custom setup. The key components of HAProxy ALOHA include a pre-configured instance of HAProxy Enterprise, accessible via an intuitive (GUI) for management and monitoring, hardware-accelerated SSL/TLS offloading for efficient encryption handling, and failover clustering capabilities through VRRP floating virtual IPs and health checks to ensure seamless redundancy. Additional features encompass simplified setup through the web-based interface, built-in real-time monitoring tools for traffic and system status, automatic software updates to maintain security and performance, and support for both Layer 4 (L4) and Layer 7 (L7) load balancing modes, including / proxying, HTTP reverse proxying, and global server load balancing (GSLB). In the latest version, HAProxy ALOHA 17.5 (released October 2025), enhancements include advanced load balancing with session tracking, a Data Plane for automated network configuration, a new Threat Detection Engine (TDE) for detecting DDoS, , and web scraper threats, custom WAF profiles for tailored security rules, health checks for GSLB with SSL/TLS support, and integration of AWS-LC replacing for improved multi-core performance and support. HAProxy ALOHA models vary by throughput capacity to suit different scales, ranging from entry-level options like the 3350 at 1 Gbps bandwidth and up to 30,000 requests per second for traffic, to high-end models like the 5350 supporting up to 25.2 Gbps and 321,000 requests per second, with overall capabilities extending to 40 Gbps in top configurations. Virtual editions are compatible with hypervisors such as and KVM, requiring 2-8 of memory and 1-4 vCPUs depending on the licensed throughput (from 2,000 to 50,000 connections). These models leverage hardware optimizations for SSL processing, achieving up to 35,100 new TLS keys per second on premium units. Primarily targeted for quick deployment in data centers or environments, HAProxy ALOHA enables organizations to achieve scalable, secure application delivery without deep expertise, such as balancing traffic for web services or DNS resolution across distributed sites. The appliances integrate seamlessly with HAProxy Enterprise modules, including access, Syslog/SNMP logging, and additional security features like DDoS protection, allowing users to extend functionality while maintaining the simplicity of the appliance form factor.

Development

Version History

HAProxy follows a structured release policy where even-numbered major versions are designated as (LTS) branches, receiving maintenance for up to five years after release, including security fixes and critical bug fixes. Odd-numbered major versions are branches with shorter support periods, typically six months, focusing on introducing new features before stabilization in the subsequent LTS release. This cadence ensures a balance between innovation and reliability, with LTS versions providing extended stability for production environments. The project's version history began with its initial release as a TCP load balancer. HAProxy 1.0 was released in 2001, providing basic proxying and load balancing capabilities without HTTP awareness. Subsequent early versions added HTTP support and basic health checks, evolving into a more robust proxy by version 1.5 in June 2014, which introduced native SSL/TLS termination with , HTTP keep-alive, and features. Multi-threading support, enabling better utilization of multi-core systems, was introduced in version 1.8 in November 2017, marking a shift from the earlier multi-process model (via the nbproc directive) toward more efficient concurrency. Major advancements in protocol support came with , released on June 16, 2019, which added full multiplexing, improved scripting integration for custom logic, and enhanced dynamic configuration capabilities. This version also deprecated the legacy multi-process mode in favor of the master-worker model with multi-threading, with full removal occurring in version 2.5. Version 2.8, an LTS release on May 31, 2023, made production-ready, added Lua-based mailers for alerts, automated OCSP updates for certificates, and improved with support for up to 4096 threads on listeners. Version 3.0, released on May 29, 2024, introduced support over , crt-stores for streamlined certificate management, persistent statistics across reloads, syslog load balancing, and / log formats for better integration. The latest major release, 3.2 on May 28, 2025, focuses on automation with protocol integration for SSL certificate renewal, enhanced CPU scalability, performance optimizations, and advanced troubleshooting tools like anomaly detection in logs. Deprecations across versions emphasize modernization; for instance, the multi-process mode was fully removed in 2.5, and end-of-life for older branches like occurred in April 2024, after which only critical fixes were applied until then. Community releases prioritize timely CVE handling, with security patches backported to supported branches, ensuring vulnerabilities are addressed without requiring upgrades to the latest version.

Recent Updates

In 2025, HAProxy released version 3.2 as its latest (LTS) branch on May 28, marking a significant update focused on performance and usability enhancements. The LTS status ensures support until Q2 2030, providing stability for production environments. Subsequent maintenance updates culminated in version 3.2.8 on November 7, addressing minor bugs and optimizations while maintaining the core innovations of the branch. Key features introduced in HAProxy 3.2 include an experimental client for automated certificate management, simplifying TLS setups by integrating with and similar services directly within the . performance saw substantial improvements, with faster connection establishment and reduced latency for traffic, enabling better handling of modern web protocols. Additional enhancements encompass automatic CPU binding for optimized multi-threading scalability, expanded Runtime API capabilities for dynamic management, and improved exporter integration for enhanced observability. These updates build on prior TLS configurations, offering more flexible certificate handling without external dependencies like . Development of HAProxy 3.3 progressed steadily through 2025, reaching dev12 by November 8, with early emphasis on refining (H3) protections against emerging threats and further optimizing multi-threading for higher concurrency in cloud environments. These previews indicate a continued push toward robust support for next-generation protocols, though the branch remains in active development and unsuitable for production use. HAProxyConf 2025, held June 4-5 in , highlighted advancements in security and cloud-native integrations, including next-generation features for HAProxy One such as enhanced multi-layered protections and Kubernetes-native tools. Keynote sessions underscored innovations in bot detection, (WAF) profiles, and seamless multi-cluster orchestration, reflecting growing adoption in containerized deployments. Looking ahead, HAProxy's roadmap emphasizes broader adoption to capitalize on 's efficiency in reducing connection overhead, alongside explorations in intelligent traffic routing potentially informed by for adaptive load balancing in dynamic infrastructures. Throughout 2025, several critical bug fixes addressed vulnerabilities, notably CVE-2025-11230, a denial-of-service in the mjson library affecting parsing, patched in versions 3.0.11 and later with a CVSS score of 7.5 (HIGH). Another fix targeted CVE-2025-32464, a heap-based in sample_conv_regsub for uncommon configurations, resolved in 3.0.10 and subsequent releases. These patches, including updates to handling for stability, were backported to supported branches to mitigate risks without disrupting core functionality.

Performance and Comparisons

Benchmarks and Optimization

HAProxy demonstrates robust performance in benchmark tests, capable of handling substantial traffic volumes on modern hardware. On a 64-core AWS Graviton2 instance (c6gn.16xlarge with 100 Gbps networking), HAProxy version 2.3 achieved 2.04 million requests per second for non-TLS HTTP traffic, while version 2.4 reached up to 2.08 million requests per second. With TLS termination using RSA 2048-bit certificates and TLSv1.3, throughput remained high at 1.99–2.01 million requests per second, adding only minimal overhead. These results were obtained using the dpbench benchmarking tool on Ubuntu 20.04, measuring end-to-end latency at the 99.99th percentile. For mid-range servers with 6–8 cores, HAProxy typically sustains 19,000–25,000 requests per second under HTTP/1.1 loads with 1,000 to 100,000 concurrent connections, depending on configuration and workload. Throughput metrics further highlight its efficiency, with capabilities up to 100 Gbps of forwarded traffic on high-bandwidth instances like the c6gn series, where HAProxy achieved 92 Gbps of HTTP payload bandwidth with small requests (30 bytes). Latency for Layer 4 (L4) balancing remains under 1 ms, often around 560 µs for non-TLS requests, enabling low-overhead proxying for I/O-bound scenarios. Optimization techniques focus on leveraging multi-core architectures and resource tuning. Configuring nbproc for multiple processes or nbthread for threading (e.g., 22 threads on a 64-core system) distributes load across CPUs, reducing idle time to around 50% under heavy traffic while monitoring via the Runtime API's show info command. Adjusting maxconn to 500,000 per process and bufsize accordingly prevents connection limits, boosting requests per second from baseline levels like 97 to over 749 in tuned setups. HAProxy supports SO_REUSEPORT (available on Linux 3.9+ kernels) for allowing multiple processes to bind to the same port during graceful restarts, improving high-availability clustering. Kernel settings like net.ipv4.tcp_tw_reuse = 1 can further improve socket reuse for high-connection rates, while PEER sections facilitate clustering for high availability, maintaining two active peers under load. Performance varies by workload type: CPU-bound tasks, such as SSL processing, show higher SslRate (e.g., 2,062 requests per second) and key generation overhead (1,098 keys per second), whereas I/O-bound forwarding benefits from HAProxy's event-driven model with minimal added . SSL offload impacts throughput by introducing cryptographic overhead, though optimizations like TLSv1.3 mitigate this to under 5 ms at the 99.9th . Testing methodologies employ tools like wrk for multi-threaded HTTP benchmarking or Apache Bench (ab) for simple request-per-second measurements, often run on EC2 instances to simulate real loads. Hardware considerations include SSDs for logging to avoid I/O bottlenecks during high-volume tests, ensuring accurate metrics for CurrConns and SessRate. In 2025, HAProxy version 3.2 introduced enhancements yielding 20–30% better throughput, particularly for uploads via larger Rx windows (up to 90% of connection memory) and pacing algorithms that deliver 10–20x gains on lossy networks. These updates, including configurable tune.quic.frontend.stream-data-ratio, improve utilization for traffic without altering core L4/L7 balancing. As of November 2025, benchmarks for version 3.2 on modern hardware (e.g., AWS Graviton3 or Scalable) show continued improvements in throughput and latency over prior versions, though specific figures depend on .

Similar Software

HAProxy, as a dedicated open-source load balancer and , competes with several alternatives in the reverse proxy and load balancing space, each tailored to specific architectural needs and deployment scenarios. While HAProxy emphasizes high-performance /HTTP proxying with fine-grained control, other tools like , Envoy, Traefik, and Apache Traffic Server offer varying degrees of web serving, cloud-native integration, or caching capabilities. Nginx, a module-based and , excels in serving static content and handling high-concurrency HTTP traffic through its , but it is less flexible for Layer 7 TCP load balancing compared to HAProxy's specialized proxying features. HAProxy provides superior pure proxying for dynamic TCP/HTTP workloads, enabling advanced health checks and ACLs without the overhead of Nginx's broader modules. Envoy, a cloud-native proxy developed by , focuses on service mesh environments like Istio, offering extensive API-driven configuration and for , which makes it more suitable for dynamic, distributed systems than HAProxy's traditional setups. HAProxy remains simpler for on-premises or legacy infrastructures, prioritizing stability and low-latency proxying over Envoy's programmable extensions and support. Traefik, designed for containerized environments, supports dynamic configuration through service labels in Kubernetes and Docker, automating discovery and routing without manual file edits, in contrast to HAProxy's static, file-based configuration that allows for more precise, low-level control. While Traefik simplifies orchestration in cloud-native deployments, HAProxy's manual approach enables deeper customization for complex load balancing rules. Apache Traffic Server, oriented toward content delivery networks (CDNs), handles caching and edge acceleration for high-volume traffic with built-in and support, but its greater complexity suits large-scale caching more than HAProxy's lightweight balancing for general proxying. HAProxy offers a simpler, more efficient option for basic load distribution without the caching-focused overhead of Apache Traffic Server. A key differentiator for HAProxy is its event-driven, non-blocking architecture supporting multi-threading within processes (since version 1.8) and multi-process scaling (though the multi-process directive is deprecated since version 2.5), outperforming thread-per-connection approaches in tools like traditional by reducing context-switching overhead. This design, combined with HAProxy's open-source maturity since its initial release in , contributes to its reliability in high-throughput scenarios. In market positioning, HAProxy leads in raw performance for HTTP and load balancing according to 2025 G2 Grid Reports, where it achieved a 99% satisfaction score and top rankings across 25 categories, while alternatives like Envoy and Traefik excel in orchestration and integration.

References

  1. [1]
    HAProxy - The Reliable, High Perf. TCP/HTTP Load Balancer
    HAProxy is a free, very fast and reliable reverse-proxy offering high availability, load balancing, and proxying for TCP and HTTP-based applications.HAProxy Documentation · Starter Guide · Older news... · HAProxy community
  2. [2]
    The History of HAProxy
    Nov 8, 2019 · HAProxy's origin story is one that has not been told and you may be curious about its roots and what drove it to be what it is today.
  3. [3]
  4. [4]
    HAProxy version 3.0.12-38 - Starter Guide
    ### Summary of HAProxy from https://docs.haproxy.org/3.0/intro.html
  5. [5]
    HAProxy Load Balancer's development branch (mirror of git ... - GitHub
    HAProxy is licensed under GPL 2 or any later version, the headers under LGPL 2.1. See the LICENSE file for a more detailed explanation.
  6. [6]
    HAProxy - Wikipedia
    History. HAProxy was written in 2000 by Willy Tarreau, a core contributor to the Linux kernel, who still maintains the project. In 2013, the company HAProxy ...
  7. [7]
    [PDF] HAProxy 1.5 and beyond - FRNOG
    Some sites using 1.4 have already replaced stunnel with 1.5-dev on the front. ⇒ 1.5-dev still needs to be stable enough because large sites rely on it today.
  8. [8]
    ChangeLog - HAProxy
    - enforce file descriptor limitation on socket() and accept(). 2001/12 ... 2001/12/16 : release of version 1.0.0. 2001/12/16 : added syslog capability ...
  9. [9]
    Willy Tarreau on HAProxy at its 20 year anniversary (interview)
    Nov 15, 2021 · Willy Tarreau, the founder of the HAProxy load balancer, 20 years past its initial, open source release, still guides the project, often ...
  10. [10]
    haproxy - Debian Package Tracker
    [2025-10-28] haproxy 3.2. · [2025-10-25] Accepted haproxy 3.2. · [2025-10-19] Accepted haproxy 2.6. · [2025-10-13] Accepted haproxy 3.0. · [2025-10-06] haproxy 3.2.
  11. [11]
    8.62. haproxy | 6.5 Technical Notes | Red Hat Enterprise Linux | 6
    The haproxy packages provide a reliable, high-performance network load balancer for TCP and HTTP-based applications. It is particularly suited for web sites ...
  12. [12]
    Haproxy Technologies LLC - Company Profile and News
    Haproxy Technologies LLC was founded in 2013. The company's line of business includes providing computer processing and data preparation services.
  13. [13]
    HAProxy Technologies - LinkedIn
    HAProxy Technologies is the company behind HAProxy One, the world's fastest application delivery and security platform, and HAProxy, the most widely used ...
  14. [14]
    Multithreading in HAProxy
    Dec 20, 2017 · We use progressive locks invented by our HAProxy Technologies CTO Willy Tarreau for all spinlocks and RWlocks. We use macros to abstract all the ...Multithreading In Haproxy · ​ # Advanced... · ​ # Advanced: Debugging
  15. [15]
    How can I enable HTTP/2 on HAProxy? - Stack Overflow
    Nov 17, 2016 · HAProxy 1.8 now supports HTTP/2 on the client side (in the frontend sections) and can act as a gateway between HTTP/2 clients and your HTTP/1.1 and HTTP/1.0 ...HAProxy - HTTP/1.1 frontend with HTTP/2 backend? A good idea?HA Proxy support for HTTP/2 backend servers in http modeMore results from stackoverflow.comMissing: 2020s | Show results with:2020s
  16. [16]
    How to Enable QUIC Load Balancing on HAProxy
    Jun 5, 2023 · To enable QUIC in HAProxy, recompile with a compatible TLS library, use quic4/quic6 prefix, configure TLS, and use Alt-Svc header for browser ...Missing: 2020s | Show results with:2020s
  17. [17]
    HAProxyConf 2019 Recap - HAProxy Technologies
    Jan 31, 2020 · HAProxyConf 2022 Recap. September 9th, 2019. Introducing HAProxyConf 2019. Announcing our first-ever HAProxy user conference, HAProxyConf 2019!
  18. [18]
    What are load-balancing algorithms? - HAProxy Technologies
    Load-balancing algorithms help apps process (often) millions of concurrent requests, intelligently distributing them between servers based on configured ...
  19. [19]
    Your Comprehensive Guide to HAProxy Protocol Support
    Sep 18, 2023 · gRPC support via HTTP/2. HAProxy supports all HTTP protocol ... The HTTP/S protocol is also built atop TCP, with the exception of HTTP/3.Missing: WebSocket | Show results with:WebSocket
  20. [20]
    Layer 4 vs Layer 7 Proxy Mode (Understanding the Difference)
    Nov 13, 2020 · HAProxy can be switched into TCP mode, which corresponds to layer 4, or HTTP mode, which corresponds to layer 7, by setting its mode ...Missing: ACLs | Show results with:ACLs
  21. [21]
    AN-0057-EN – content switching - HAProxy Technologies
    This application note is intended to help you route HTTP requests based on any information available in the HTTP protocol (URL and headers) in HAProxy.
  22. [22]
    ACLs | HAProxy config tutorials
    You can use ACLs in many scenarios, including routing traffic, blocking traffic, and transforming messages. An ACL has no effect on your configuration until you ...Missing: switching | Show results with:switching
  23. [23]
    Health checks | HAProxy config tutorials
    Health checks ensure that only healthy servers are kept in the load balancing rotation. They check the status of each server by using one of the health checking ...
  24. [24]
    A Guide to HAProxy Health Checks for High Availability
    Sep 14, 2021 · The simplest solution is to poll your backend servers by attempting to connect at a defined interval. This is known as an active health check.Missing: thresholds | Show results with:thresholds
  25. [25]
    Failover & Worst Case Management With HAProxy
    Dec 23, 2013 · HAProxy can failover traffic to a backup farm when the main one has not have enough capacity or, worst case, no capacity anymore.
  26. [26]
    Session persistence | HAProxy config tutorials
    Session persistence routes a client to the same backend server. It can be based on HTTP cookies or the client's IP address.Missing: high failover mechanisms rate limiting
  27. [27]
    HAProxy rate limiting: four examples
    Jul 30, 2019 · Use rate limiting in HAProxy to stop clients from making too many requests and promote fair usage of your services.Sliding window rate limiting · Rate limit by fixed time window · Rate limit by URL
  28. [28]
    HAProxy SSL Termination (Offloading) in 5 Simple Steps
    Jun 15, 2019 · This blog post shows how to quickly and easily enable SSL/TLS encryption for your applications by using high-performance SSL termination in ...
  29. [29]
    Basic authentication | HAProxy config tutorials
    Follow these steps to set up basic authentication. Usernames and their associated passwords are stored in the load balancer's running memory.
  30. [30]
    HAProxy version 3.0.12-38 - Configuration Manual
    HAProxy essentially supports 3 connection modes : - keep alive : all requests and responses are processed, and the client facing and server facing connections ...
  31. [31]
  32. [32]
  33. [33]
  34. [34]
    HAProxy Documentation Converter
    haproxy-dconv is the HAProxy Documentation Converter. It is designed to convert the HAProxy documentation into HTML. More than HTML, the main goal is to provide ...Starter Guide · Configuration Manual · Management Guide
  35. [35]
    HAProxy Enterprise | World's Fastest Software Load Balancer
    Upgrade HAProxy with next-gen security, API/AI gateway, UDP load balancing, management and observability via HAProxy Fusion, and authoritative support.Missing: GPL | Show results with:GPL<|separator|>
  36. [36]
  37. [37]
  38. [38]
    Upgrade from HAProxy to HAProxy Enterprise
    HAProxy Enterprise combines HAProxy with powerful, enterprise-class features, services, and premium support. It's tailored to the goals, requirements, and ...
  39. [39]
    Premium support for HAProxy enterprise-level products
    Premium support for HAProxy enterprise-level products. Have a question, need product help, or want to learn more? We've got you covered.Missing: SLAs | Show results with:SLAs
  40. [40]
    Ansible | HAProxy Enterprise
    Ansible is a configuration management solution, primarily in Python, used to manage HAProxy load balancer deployments, with ad-hoc and playbook modes.
  41. [41]
    HAProxy Enterprise Trial
    Our trial includes all features of the full HAProxy Enterprise license with no performance limitations. ... By clicking "Submit Request" below, you confirm ...Missing: core | Show results with:core
  42. [42]
    Success Stories | Why Leading Companies Choose HAProxy
    Explore our success stories to learn why and how companies like Yammer and Criteo use HAProxy to achieve the utmost performance, observability, ...
  43. [43]
    6 Enterprises Power the Uptime of the Cloud Era with HAProxy ...
    Feb 2, 2021 · These interviews and case studies showcase how real users put HAProxy Enterprise into practice to simplify and secure their application delivery ...
  44. [44]
    HAProxy ALOHA | Hardware or Virtual Load Balancer
    HAProxy ALOHA is a dedicated hardware or virtual load balancer based on HAProxy Enterprise that supports proxying at Layer 4 and Layer 7.
  45. [45]
    None
    ### Summary of HAProxy ALOHA Load Balancers
  46. [46]
    HAProxy ALOHA | HAProxy Documentation
    HAProxy ALOHA is a plug-and-play hardware or virtual load balancer appliance based on HAProxy Enterprise. Its simple graphical interface, easy installation,
  47. [47]
    Announcing HAProxy ALOHA 17.0
    Mar 19, 2025 · HAProxy ALOHA provides high-performance load balancing for TCP, UDP, QUIC, and HTTP-based applications; SSL processing; PacketShield DDoS ...<|control11|><|separator|>
  48. [48]
    HAProxy - endoflife.date
    HAProxy ; 2.1, 5 years and 11 months ago. (25 Nov 2019). Ended 4 years and 7 months ago. (18 Mar 2021) ; 2.0, 6 years ago. (16 Jun 2019). Ended 1 year and 7 ...
  49. [49]
  50. [50]
    The Reliable, High Performance TCP/HTTP Load Balancer - HAProxy
    HAProxy 2.5 is now the latest stable release. It further improves runtime updates, flexibility and performance. The full story is detailed here in the announce.
  51. [51]
    Multi process or multi treaded - Help! - HAProxy community
    Feb 16, 2022 · Multi process mode has been deprecated a long time ago and completely removed in 2.5. So you don't have a choice, actually. It's multi threading.Missing: 1.5 2010
  52. [52]
  53. [53]
  54. [54]
    Announcing HAProxy 3.2
    May 28, 2025 · HAProxy 3.2 is here, and this release gives you more of what matters most: exceptional performance and efficiency, best-in-class SSL/TLS, deep observability, ...Missing: odd | Show results with:odd
  55. [55]
    TLS and HAProxy 3.2: From Stunnel to native TLS support - YouTube
    Jul 23, 2025 · Explore HAProxy's TLS evolution from early challenges to a native, high-performance stack. Learn about certificate management, QUIC, ACME, ...Missing: features | Show results with:features
  56. [56]
    HAProxyConf 2025 Recap - HAProxy Technologies
    Jul 9, 2025 · Meanwhile, at HAProxyConf 2022, we unveiled HAProxy Fusion Control Plane for the first time. Three years later, we joined HAProxy's global ...
  57. [57]
    HAProxy Technologies Announces Kubernetes Innovations at ...
    Jun 6, 2025 · Key highlights from HAProxyConf 2025. Day One of HAProxyConf 2025 focused on the security applications of HAProxy One. The opening keynote ...
  58. [58]
    [SECURITY] [DSA 6017-1] haproxy security update - Debian
    Oct 3, 2025 · ... haproxy CVE ID : CVE-2025-11230 Oula Kivalo reported that HAProxy, a fast and reliable load balancing reverse proxy, is prone to a denial of ...
  59. [59]
    CVE-2025-32464 Detail - NVD
    Apr 8, 2025 · HAProxy 2.2 through 3.1.6, in certain uncommon configurations, has a sample_conv_regsub heap-based buffer overflow because of mishandling of the replacement of ...
  60. [60]
    CVE-2025-11230: Denial of service vulnerability in HAProxy mjson ...
    Oct 3, 2025 · The latest versions of HAProxy Fusion fix multiple rsync vulnerabilities related to memory handling and file management in HAProxy Fusion's ...
  61. [61]
    HAProxy Exceeds 2 Million RPS on a Single Arm Instance
    Apr 8, 2021 · HAProxy version 2.3, when tested on Arm-based AWS Graviton2 instances, reaches 2.04 million requests per second! HAProxy 2.4, which is still under development, ...
  62. [62]
    HAProxy vs NGINX Performance: A Comprehensive Analysis - Last9
    Apr 10, 2025 · HAProxy Performance: Connection establishment rate: 40,000-50,000 connections per second; Connection tracking efficiency: Approximately 10MB ...
  63. [63]
    Performance tuning HAProxy Enterprise
    In this guide, we'll describe ways to get the optimal performance from your HAProxy Enterprise load balancer when under heavy load.
  64. [64]
    Performance Tuning HAProxy - CloudBees
    HAProxy is a software load balancer commonly used to distribute TCP-based traffic to multiple backend systems. It provides not only load balancing but also has ...
  65. [65]
    Load Balancer performance: Benchmarking HAProxy on EC2
    Nov 13, 2023 · HAProxy on EC2 achieved 5303.80 requests/sec (HTTP), 155.98 (HTTPS), 436.34 (m1.medium), and 12240.03 (m1.medium test client). The conclusion ...
  66. [66]
    Best Load Balancing Software of 2025 - G2
    User Satisfaction. HAProxy features and usability ratings that predict user satisfaction. 8.6. Ease of Use. Average: 8.9. 9.1. Has the product been a good ...
  67. [67]
    HAProxy G2 Reviews (2025) Load Balancing Software Leader
    HAProxy received a Satisfaction Score of 98 in the G2 Grid® Reports for Summer 2024, and that's no accident. See how HAProxy responds to user feedback to ...
  68. [68]
    NGINX and HAProxy: Testing User Experience in the Cloud
    Jan 7, 2021 · Both NGINX and HAProxy are software‑based and have event‑driven architectures. While HAProxy MP delivers better performance than HAProxy MT, the ...
  69. [69]
    Compare Nginx vs. HAProxy - G2
    G2 users indicate that F5 NGINX offers superior Quality of Support with a score of 7.6, but many users feel that HAProxy's support, scoring 9.0, is more ...
  70. [70]
    Envoy vs HAProxy: Which Proxy Server Is Right for Your ... - Last9
    Apr 8, 2025 · Origin and Evolution: The History Behind Envoy and HAProxy. HAProxy (High Availability Proxy) entered the scene in 2006, created by Willy ...
  71. [71]
    Envoy vs HAProxy comparison - PeerSpot
    As of November 2025, in the Service Mesh category, the mindshare of Envoy is 22.3%, up from 16.5% compared to the previous year. The mindshare of HAProxy is ...
  72. [72]
    Nginx vs. Traefik vs. HAProxy: Comparing Kubernetes Ingress ...
    Sep 12, 2023 · Nginx is robust for high traffic, Traefik is simpler and dynamic, and HAProxy has advanced load balancing. Nginx has complex config, Traefik is ...
  73. [73]
    HAProxy vs Traefik | What are the differences? - StackShare
    In summary, HAProxy and Traefik have different strengths and are designed for different use cases. HAProxy offers more configuration flexibility and advanced ...
  74. [74]
    Apache Traffic Server vs HAProxy | What are the differences?
    In summary, Apache Traffic Server and HAProxy have different strengths and use cases. Apache Traffic Server is well-suited for high-volume, high-concurrency ...
  75. [75]
    Compare Apache Traffic Server vs. HAProxy - G2
    Reviewers mention that HAProxy offers superior quality of support with a score of 9.1 compared to Apache Traffic Server's 7.1. This indicates that users may ...
  76. [76]
    HAProxy version 2.5.14 - Starter Guide
    May 2, 2023 · HAProxy is an event-driven, non-blocking engine combining a very fast I/O layer with a priority-based, multi-threaded scheduler.
  77. [77]
    HAProxy Reviews 2025: Details, Pricing, & Features - G2
    handles high traffic loads efficiently. Very flexible configuration, supporting advanced load-balancing algorithms and ...