01Chapter 1: Why one server is not enough: scaling and availabilityThis chapter assumes you know how a client talks to a server over HTTP, what a TCP connection, an IP address and a port are, and how to edit a plain-text configuration file. No load balancer experience is needed.3 min read
02Chapter 2: What a load balancer doesThis chapter assumes you know how HTTP requests and responses work, understand TCP connections, IP addresses and ports, and can edit a configuration file. It describes the load balancer's role and the basic request flow. Later chapters cover algorithms, health checks and the other topics in detail.3 min read
03Chapter 3: Layer 4 vs Layer 7 load balancingThis chapter assumes you know how HTTP requests and responses work, what a TCP connection is, and how to edit a configuration file. It also assumes you know what a load balancer does in general. Here you will see the two main ways it can inspect traffic and how to pick between them.3 min read
04Chapter 4: Choosing a balancing algorithmThis chapter assumes you know how HTTP requests and TCP connections work, and that you can read a configuration file. It also assumes you know what a load balancer does: it receives client traffic and forwards each request or connection to one server in a pool. The balancing algorithm is the rule th3 min read
05Chapter 5: Health checks: keeping traffic off failed backendsThis chapter assumes you know how HTTP and TCP connections work, and that you have read the earlier chapters on what a load balancer does and on balancing algorithms. It covers how a load balancer decides that a backend is unfit for traffic, and how to configure that in NGINX and HAProxy.3 min read
06Chapter 6: Session persistence and when to avoid itThis chapter assumes you know how HTTP requests and cookies work, and that you have read the chapters on balancing algorithms and Layer 4 vs Layer 7 balancing. You should be able to read a basic NGINX or HAProxy configuration.3 min read
07Chapter 7: TLS termination and passthroughThis chapter assumes you know how Layer 4 and Layer 7 balancing differ, and that you have seen a basic NGINX or HAProxy pool. It covers where the TLS connection ends: at the load balancer or at the backend.3 min read
08Chapter 8: Hardware, software and cloud load balancersThis chapter assumes you know what a load balancer does, the difference between Layer 4 and Layer 7, and how to read a basic NGINX or HAProxy configuration. Here you will compare the three ways to run a load balancer and choose between them.3 min read
09Chapter 9: Connection draining and graceful deploysThis chapter assumes you know what a load balancer does, how health checks mark a backend as up or down, and how to read a basic NGINX or HAProxy configuration. It covers how to take a backend out of rotation without dropping the requests it is serving.3 min read
10Chapter 10: Hash-based balancing and consistent hashingThis chapter assumes you know how round robin and least connections work, what a backend pool is, and why session persistence matters. You should be comfortable reading NGINX and HAProxy configuration.3 min read
11Chapter 11: Removing the load balancer as a single point of failureEarlier chapters used a load balancer to remove single points of failure from the backend tier. The load balancer is now the single point of failure. If it stops, every backend becomes unreachable, however healthy they are. This chapter assumes you know how Layer 4 and Layer 7 balancing work, what h3 min read
12Chapter 12: Global load balancing with DNS and anycastThis chapter assumes you know how a single load balancer spreads traffic across backends, what a health check is, and how DNS resolves a name to an IP address. It covers how to spread traffic across several regions, which a single load balancer cannot do.3 min read
13Chapter 13: Metrics, logs and troubleshootingThis chapter assumes you know how Layer 4 and Layer 7 balancing differ, how health checks mark backends up or down, and how to read an NGINX or HAProxy configuration. It covers what to measure on a load balancer, what to log, and how to narrow down common faults.3 min read