HAProxy
Web infrastructure · Free
A TCP and HTTP load balancer: health checks, routing, and load distribution across backends for resilient app service.
What you can use for free
The open source component used locally or self-hosted for the stated workflow, within its license terms.
Paid features and costs
Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.
Access and limitations
Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.
Use cases
- Check resilient load balancing
- Send requests, disable one backend, and check that service continues
Example workflow
A possible workflow; this is not a report of hands-on testing.
Check resilient load balancing
Before you start
- Two test backends and a health-check endpoint.
- A test project and completion criteria for the task: Check resilient load balancing.
Steps
- Set up HAProxy to test: Two test backends and a health-check endpoint.
- Send requests, disable one backend, and check that service continues.
- Integrate the checked version into your project; document its configuration, limitations, and recovery method.
Check your result
- Health checks are correct; timeouts and logs distinguish upstream from client failures.
- Check the result against a reference example; separately confirm the terms of any assets and external services used.
Choosing HAProxy
Check resilient load balancing
Choose this when
- Check resilient load balancing
- Send requests, disable one backend, and check that service continues
Consider alternatives when
- When choosing for this topic, compare HAProxy with Caddy. A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- When choosing for this topic, compare HAProxy with NGINX. A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
Things to consider
- Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
- Terms of use: Core: GPLv2; exported headers: LGPL, with the OpenSSL exception stated in LICENSE.
- Feature support is determined by the branch. LICENSE distinguishes the GPL core from LGPL exportable headers and adds an OpenSSL exception.
Frequently asked questions
What can you use for free in HAProxy?
The openly available portion, used locally or self-hosted for the stated use case within its license terms.
What additional costs might arise with HAProxy?
Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
What terms of use matter for HAProxy?
Core: GPLv2; exported headers: LGPL, with the OpenSSL exception stated in LICENSE.
How do you get started with HAProxy?
Set up HAProxy to test: Two test backends and a health-check endpoint. Send requests, disable one backend, and check that service continues. Integrate the checked version into your project; document its configuration, limitations, and recovery method.
How should I choose an HAProxy branch for long-term operation?
The official site distinguishes LTS from the shorter stable lifecycle and recommends updating bugfix releases within the chosen branch. HAProxy proxies TCP/HTTP and balances backend servers; newer branches add runtime configuration, observability, and protocol features that must be checked by version.
Related tasks and approaches
- Caddy
A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- NGINX
A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
- Traefik Proxy
A candidate to compare under the topic: Hosting and publication, Web servers and proxies. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
License
Core: GPLv2; exported headers: LGPL, with the OpenSSL exception stated in LICENSE.
GPL 2.0 — open-source code with copyleft
Commercial use and sale are permitted. When distributing the program or a derivative version, comply with GPL and give recipients access to the corresponding source code. Simply using an editor or utility does not require you to open-source your independent work. Any stated exceptions apply only within their defined scope.
License termsLGPL2.1 — terms for a library and its modifications
You can use the library while complying with LGPL; distributing a modified version and linking it with an application involves specific requirements for source code, notices, and the ability to replace the library. Check the linking method and exact version's terms before distribution.
License termsTechnologies and topics
- HAProxy
- Web infrastructure