Networking

Proxy

A proxy sits between a client and a server, same as a VPN — but for a different job. A VPN's whole point is encrypting and tunneling traffic; a proxy's point is acting on behalf of one side — caching, filtering, hiding an identity, or spreading load — and it may not involve encryption at all.

Quick reference
What it is
A server that sits between a client and a destination, making the request on one side's behalf.
Mental model
A personal assistant who places calls for you — the other party talks to your assistant, never directly to you.
Key numbers
The one question that tells the two kinds apart: which side is the proxy standing in front of — the clients, or the servers?
Reach for it when
Caching repeated requests, filtering/monitoring traffic, hiding a client's identity, or distributing load across several backend servers.

Forward proxy vs. reverse proxy

Both are the same basic idea — "stand in the middle" — pointed in opposite directions:

A forward proxy sits in front of clients, making requests to the internet on their behalf; a reverse proxy sits in front of servers, receiving requests from the internet and routing them to the right backend Forward proxy Client Proxy Internet The destination sees the proxy's identity, not the client's. Reverse proxy Internet Proxy Server A Server B The client only ever sees the proxy's address, never a real backend. Same shape, opposite side — a forward proxy is a client's agent; a reverse proxy is a server's. A reverse proxy distributing requests across several backends is also, in effect, a load balancer.
The single diagnostic question: which side is the proxy standing in front of, the requester or the destination?

Why use one at all

Real-world applications

Gotchas

Field notes