02Chapter 2: What a load balancer doesThis chapter explains the working model of a load balancer: what sits between the client and the servers, what it decides on each request, and what it leaves alone. It assumes you know basic HTTP client-server communication, TCP, IP addresses and ports, and how to edit a configuration file. Later ch7 min read
03Chapter 3: Layer 4 vs Layer 7 load balancingThis chapter assumes you know how a TCP connection is opened, what an IP address and port are, and what an HTTP request looks like (method, path, headers, status code). It also assumes you can read a short configuration file.7 min read
04Chapter 4: Choosing a balancing algorithmA balancing algorithm is the rule a load balancer uses to pick a backend for each new connection or request. This chapter assumes you know how HTTP and TCP connections work, what a backend pool is, and how to edit a configuration file. It also assumes you have read the earlier chapters on what a loa8 min read
05Chapter 5: Health checks: keeping traffic off failed backendsThis chapter assumes you know what a load balancer does and how it picks a backend. It also assumes you can read NGINX or HAProxy configuration. A balancing algorithm only chooses among servers the balancer believes are usable. Health checks are how it forms that belief. If they are wrong, the balan6 min read
06Chapter 6: Session persistence and when to avoid itThis chapter assumes you know how HTTP requests and cookies work, how TCP connections and ports behave, and how a load balancer picks a backend (see the earlier chapters on Layer 4 vs Layer 7 and balancing algorithms). You should be able to read a basic NGINX or HAProxy configuration.7 min read
07Chapter 7: TLS termination and passthroughThis chapter assumes you know how an HTTPS connection is set up (TCP handshake, then TLS handshake), what a certificate and a certificate authority are, and the Layer 4 versus Layer 7 distinction from the earlier chapter. You should also be comfortable editing NGINX or HAProxy configuration files.7 min read
08Chapter 8: Hardware, software and cloud load balancersThis chapter compares the three ways to run a load balancer: a dedicated hardware appliance, software on servers you manage, and a managed service from a cloud provider. It assumes you know the difference between Layer 4 and Layer 7 balancing, the common balancing algorithms, and how health checks w8 min read
09Chapter 9: Connection draining and graceful deploysThis chapter assumes you know what a load balancer does, how health checks work, and the difference between Layer 4 and Layer 7 balancing. You should also be comfortable with HTTP keep-alive and with sending signals to a process.6 min read
10Chapter 10: Hash-based balancing and consistent hashingThis chapter assumes you know the balancing algorithms from the earlier chapters (round robin, weighted, least connections) and the difference between Layer 4 and Layer 7. It also assumes you can read a short Python script and an NGINX or HAProxy configuration file.6 min read
11Chapter 11: Removing the load balancer as a single point of failureThis chapter assumes you have read the earlier chapters on health checks and on hardware, software and cloud load balancers. It also assumes you can read an NGINX or HAProxy configuration and know how IP addresses, ARP and routing work at a basic level.7 min read
12Chapter 12: Global load balancing with DNS and anycastThis chapter assumes you know how a single-site load balancer works: backend pools, health checks, and the difference between Layer 4 and Layer 7. It also assumes you can read basic DNS records (A, AAAA, CNAME) and know what a TCP connection is. Everything here is about balancing across sites, such 9 min read
13Chapter 13: Metrics, logs and troubleshootingThis chapter assumes you know what a load balancer does, the difference between Layer 4 and Layer 7 balancing, and how health checks work. It also assumes you can read an NGINX or HAProxy configuration file and use basic command-line tools. The goal is to show you what to measure, what to log, and h9 min read