← Concepts
Networking·3 min read

Proxies (Forward & Reverse)

Servers that sit between two parties and intercept their traffic for some purpose.

First time reading this? Start here

Plain English: a middleman server. A forward proxy speaks on behalf of the client (your VPN, your work proxy). A reverse proxy speaks on behalf of the server (Nginx in front of your app). Same idea, opposite sides.

Used in:URL ShortenerAPI Rate LimiterNetflix
What it is

A proxy mediates between a client and a server. A forward proxy acts on behalf of the client (think: corporate web proxy, VPN). A reverse proxy acts on behalf of the server (think: Nginx in front of your app servers, where load balancer, API gateway, CDN edge are all reverse proxies).

The problem it solves

Different problems for each direction. Forward proxies provide content filtering, caching, anonymization, or access control for clients in a network. Reverse proxies provide load balancing, TLS termination, caching, auth, and abstraction in front of backend services.

How it works

Forward proxy: client is configured to send requests through the proxy, which forwards them to the destination. Reverse proxy: clients hit a single address; the reverse proxy routes the request to one of many backend servers based on URL, headers, or load.

Why use it
What it costs you
Where it shows up in our architectures
Gotchas

Your notes

Private to you