02Chapter 2: Forward proxies: acting on behalf of clientsThis chapter assumes you know HTTP requests, methods and headers, what IP addresses, ports and DNS do, and that TLS provides encryption and server identity. It covers the forward proxy only. Reverse proxies come in a later chapter.2 min read
03Chapter 3: Reverse proxies: acting on behalf of serversThis chapter assumes you know HTTP requests, methods and headers, and what IP addresses, ports and DNS do. It also assumes you know that TLS provides encryption and server identity.2 min read
04Chapter 4: Forward vs reverse: who knows about the proxyThis chapter assumes you know HTTP requests and headers, what an IP address, port and DNS name are, and what TLS provides. The earlier chapters introduced forward and reverse proxies separately. Here you compare them by one question: which side knows the proxy exists, and which side it works for.2 min read
05Chapter 5: How a proxy relays HTTP and HTTPS trafficThis chapter assumes you know HTTP requests, methods and headers, what ports and DNS do, and that TLS encrypts a connection between two endpoints. It covers how a proxy forwards plain HTTP, how it handles HTTPS, and which headers keep the original client's details intact.3 min read
06Chapter 6: Access control and egress filtering with a forward proxyThis chapter assumes you know HTTP methods and headers, what the CONNECT method does, and the basic idea of TLS. It covers how a forward proxy decides which outbound requests to allow, and where that control breaks down.3 min read
07Chapter 7: Explicit and transparent proxy deploymentsThis chapter assumes you know how a forward proxy relays HTTP and what the CONNECT method does. A forward proxy can reach clients in two ways. Clients can be configured to use it, which is an explicit deployment. Or the network can send their traffic to it without their knowledge, which is a transpa2 min read
08Chapter 8: Load balancing behind a reverse proxyThis chapter assumes you know how a reverse proxy sits in front of servers and relays HTTP requests. It also assumes you can read a basic nginx configuration. Here you will see how a reverse proxy spreads requests across several backends and what can go wrong.2 min read
09Chapter 9: Detecting failed backendsA reverse proxy that spreads traffic across several backends must also notice when one stops working. Without that, it keeps sending a share of requests to a dead server, and users see errors. This chapter assumes you know HTTP status codes, the round-robin idea from the load balancing chapter, and 3 min read
10Chapter 10: TLS termination and re-encryptionThis chapter assumes you know what HTTP headers are, what TLS provides (encryption, server authentication, integrity), and what a reverse proxy does. It covers where a reverse proxy ends the TLS session and what that means for the backends.3 min read
11Chapter 11: Caching responses at the proxyThis chapter assumes you know HTTP methods, status codes and headers, and that you have read the earlier chapters on reverse proxies and how a proxy relays HTTP. It shows how a reverse proxy can answer repeat requests from its own storage instead of asking the backend each time.3 min read
12Chapter 12: From reverse proxy to API gatewayThis chapter assumes you know how a reverse proxy forwards requests to backends, including load balancing and the forwarding headers covered earlier. It shows where a plain reverse proxy ends and an API gateway begins.2 min read
13Chapter 13: Keeping the proxy tier available and scalableThis chapter assumes you know how a reverse proxy load-balances requests and how health checks remove failed backends. It also assumes you are comfortable with IP addresses, ports and DNS. A reverse proxy protects the backends from failure. The proxy itself can still fail, so it needs the same care.3 min read
14Chapter 14: Trade-offs and common pitfallsThis chapter assumes you know HTTP methods and headers, how TLS works at a basic level, and the roles of forward and reverse proxies from earlier chapters. A proxy solves real problems, but it also adds a hop, a component that can fail, and a place where information about the client gets lost. Most 3 min read