Learn HAProxy (open-source load balancer and reverse proxy for TCP and HTTP) from zero to production-ready: prerequisite skills & environment setup, background history & why choose HAProxy, core concepts & main architecture, installation & hello HAProxy, frontend & backend configuration, load balancing algorithms & health checks, HTTP routing headers & rewrite, logging & basic monitoring, SSL/TLS & security, advanced configuration & runtime API, rate limiting & protection, HAProxy as an API gateway, layer 4 proxy & TCP routing, high availability & clustering, security hardening, performance tuning & scalability, content switching & ACLs, HAProxy Enterprise features, observability & integration, HAProxy on Kubernetes & containers, CI/CD & configuration management, SLOs SLIs & operational metrics, and production hardening & best practices across 23 episodes.
Before touching HAProxy, you need to master the concepts of TCP/UDP, HTTP, DNS, and the basics of load balancing and reverse proxying. In this episode you set up a Linux environment, install HAProxy and the supporting tools, then verify your first installation.

This episode tells the HAProxy story: born as a side project of Willy Tarreau, it grew into the standard open-source load balancer. You also learn how it compares with NGINX, Envoy, and F5, and the best use cases for HAProxy at layers 4 and 7.

This episode dissects HAProxy's anatomy: the five configuration section types (global, defaults, frontend, backend, listen), the request flow inside the event-driven process, and the difference between TCP and HTTP modes along with multiprocess and multithread options.

The first hands-on episode: installing HAProxy on Linux, creating a minimal HTTP forwarding configuration, running the service, verifying it with curl, and reading basic logs to confirm traffic is really flowing.

This episode goes deep into the two most important sections in HAProxy configuration: frontend and backend. You learn about binding addresses and ports, writing ACLs, using use_backend, creating several frontends and backends, and getting to know the listen section for simple services.

This episode covers HAProxy's two main engines: server selection algorithms and health checks. You learn about roundrobin, leastconn, source, and uri, understand active and passive health checks, then build a failover strategy using backup servers.

This episode goes deep into layer 7 HTTP handling: path- and host-based routing, header matching, request and response header manipulation, redirects, and cookie-based persistence to maintain session affinity.

This episode makes HAProxy visible: syslog-based logging with a readable format, the statistics page and stats socket for real-time status, and the basics of reading metrics like request rate, response time, and server health status.

This episode brings HAProxy into the HTTPS world: TLS termination at the edge, re-encryption to the backend, HTTP/2 support via ALPN, cipher suite and HSTS tuning, and correct certificate management practices for production.

This episode unlocks dynamic control of HAProxy: changing configuration at runtime through the stats socket, setting server weight and draining without restart, and using stick tables for rate limiting, authentication, and security.
