Skip to content
StackDecode
System Design
2. Networking FundamentalsAnimated

Reverse Proxy

A server in front of your servers that forwards client requests.

The idea

A reverse proxy receives requests, can terminate TLS, cache, compress and balance, then passes them to backends.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientsReverse proxyServer AServer BServer C
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Clients see only the proxy's address.

step:
1/4
at:
Clients
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Client sends request to the proxy
  2. 2Proxy picks a backend
  3. 3Backend replies to the proxy
  4. 4Proxy returns the response

Where it is used

NGINX, Envoy, CDNs.

Watch out for

It becomes a SPOF unless run in pairs.

Related