HAProxy

HAProxy

High-performance TCP/HTTP load balancer and reverse proxy

6.2kstars
893forks
Last commit: 8d ago
Repo age: 8y old
HAProxy screenshot

HAProxy is a high-performance, event-driven load balancer and reverse proxy commonly used to front web applications and APIs. It provides Layer 4 (TCP) and Layer 7 (HTTP) traffic management with strong reliability, detailed control over routing, and production-grade operational tooling.

Key Features

  • Layer 4 (TCP) and Layer 7 (HTTP) load balancing with multiple algorithms (e.g., round-robin, leastconn, hashing)
  • Reverse proxy with advanced HTTP routing rules (ACLs, header/path-based routing, rewrites)
  • Health checks (active/passive) with automatic failover and server draining
  • TLS termination and SNI-based routing; certificate loading and TLS policy controls
  • High availability patterns (multi-process/threading, seamless reloads, connection draining)
  • Session persistence (stickiness) using cookies, source IP, or other keys
  • Rate limiting, request/connection shaping, and basic DDoS/abuse mitigation primitives
  • Built-in stats and administrative interface (stats page/CLI socket) plus Prometheus-style metrics support (via exporters/integrations)

Use Cases

  • Fronting websites/APIs with HTTPS termination and path/host-based routing to multiple backends
  • Highly available load balancing for microservices and internal TCP services (databases, message brokers)
  • Edge proxy for gradual rollouts (canary), maintenance windows (draining), and traffic shaping

Limitations and Considerations

  • Configuration is powerful but can be complex; many features are expressed via ACL/rules that require careful testing.
  • Some advanced capabilities may require using HAProxy Enterprise add-ons in commercial contexts (depending on desired support/features).

HAProxy is widely deployed at scale due to its performance, stability, and deep traffic-control features. It fits well where you need fine-grained routing, reliable failover, and predictable behavior under heavy load, while remaining flexible enough for diverse TCP and HTTP workloads.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Caddy

Caddy

Modern web server with automatic HTTPS

69k
4.6k
Last commit: 3d ago

Fast, extensible web server and reverse proxy with automatic TLS certificates, simple configuration, HTTP/3 support, and production-ready observability features.

Alternative to:
NGINX Plus
NGINX Plus
+3
Traefik

Traefik

Cloud-native reverse proxy and load balancer

61k
5.8k
Last commit: 1d ago

Traefik is a dynamic reverse proxy and load balancer for Docker, Kubernetes, and microservices with automatic service discovery, routing, and TLS/ACME support.

Alternative to:
NGINX Plus
NGINX Plus
+3
Nginx Proxy Manager

Nginx Proxy Manager

Web UI for Nginx reverse proxy with Let's Encrypt SSL

30.9k
3.5k
Last commit: 1mo ago

Web-based reverse proxy manager for Nginx with hosts, streams, access lists, and automatic Let's Encrypt certificates via an easy admin UI.

Alternative to:
NGINX Plus
NGINX Plus
+5
SafeLine

SafeLine

Self-hosted WAF for protecting web apps and APIs

20k
1.3k
Last commit: 2mo ago

SafeLine is an open-source web application firewall (WAF) that protects web apps and APIs from common attacks using HTTP traffic inspection, rules, and management UI.

Alternative to:
Cloudflare WAF
Cloudflare WAF
+4
Pangolin

Pangolin

Self-hosted secure tunneling and access gateway

17.8k
529
Last commit: 4d ago

Pangolin provides a self-hosted access gateway for securely exposing internal apps via tunnels, with identity-aware access controls and a web UI.

Alternative to:
Cloudflare SSL/TLS and reverse proxy features
Cloudflare SSL/TLS and reverse proxy features
+3
BunkerWeb

BunkerWeb

Web application firewall and security reverse proxy

9.7k
555
Last commit: 1mo ago

Self-hosted WAF and reverse proxy built on NGINX, with a web UI, ModSecurity/OWASP rules, automatic HTTPS, and hardened defaults for securing web apps.

Alternative to:
Cloudflare WAF
Cloudflare WAF
+5