HAProxy load balancer and proxy. Use for high-availability.
HAProxy is the standard for high-performance load balancing. HAProxy 3.0 (2025) adds Syslog Load Balancing and improved HTTP/3 QUIC support.
frontend http_front
bind *:80
default_backend web_servers
backend web_servers
balance roundrobin
server web1 10.0.0.1:80 check
server web2 10.0.0.2:80 check
Frontend defines how requests enter (ports, certs). Backend defines where they go and how (algorithms, health checks).
Access Control Lists. Powerful conditionals.
acl is_api path_beg /api
use_backend api_servers if is_api
In-memory storage for tracking events (e.g. rate limiting by IP).
Do:
maxconn: Critical for preventing resource exhaustion.Don't: