Last modified: January 24, 2026

This article is written in: 🇺🇸

Proxies in Network Architecture

Proxies function as intermediaries in the communication flow between clients and servers, performing tasks such as request routing, caching, encryption offloading, and IP masking. By inserting themselves between the client and the destination server, proxies can manage connections in ways that provide anonymity, load balancing, and performance improvements. Below is an expanded discussion with ASCII diagrams and practical explanations of how proxies are organized and used.

A Layer of Indirection

# General Proxy Setup

   +-----------+        +---------+         +------------+
   |   Client  | -----> |  Proxy  |  -----> |  Server(s) |
   +-----------+        +---------+         +------------+
          ^                   |                   ^
          |                 (Network)             |
          +---------------------------------------+
  1. Client
  2. Initiates the request (e.g., a user’s web browser, a mobile app, or an API consumer).
  3. Sees the proxy as the destination server in many configurations.

  4. Proxy

  5. Receives requests, optionally modifies them, then forwards them to the actual server.
  6. Returns the server’s response to the client as if it were the origin itself.

  7. Server

  8. Hosts the actual resources or services the client is trying to access.
  9. May see all traffic as originating from the proxy rather than from the real client IP.

Varieties of Proxy Servers

Open Proxies

# Simple Open Proxy

 Client  ->  Public/Open Proxy  ->  Destination Server

Anonymous Proxies

Transparent Proxies

Reverse Proxies

ASCII DIAGRAM: Reverse Proxy in Front of Web Servers

           Internet
              |
       (Requests/Responses)
              v
    +--------------------+
    |     Reverse Proxy  |
    |  (Load Balancer)   |
    +---------+----------+
              |
   (Distributes traffic)
      +-------+-------+
      |               |
      v               v
+-----------+   +-----------+
|   Server1 |   |   Server2 |
+-----------+   +-----------+

Forward Proxy Architecture

A forward proxy is typically set up on the client side of a connection. It receives outbound requests from clients and relays them to the internet. This can provide privacy (the server sees only the proxy’s IP), caching, or traffic filtering.

ASCII DIAGRAM: Forward Proxy Setup

    Clients           Forward Proxy            Internet
--------------------------------------------------------
|      |            |            |             |      |
|  C1  |---Request--|            |---Request-->|  W1  |
|      |<--Response-|    FP      |<--Response--|      |
|------|            |            |             |------|
|  C2  |---Request--|            |---Request-->|  W2  |
|      |<--Response-|            |<--Response--|      |
|------|            |            |             |------|
|  C3  |---Request--|            |---Request-->|  W3  |
|      |<--Response-|            |<--Response--|      |
--------------------------------------------------------

Reverse Proxy Architecture

A reverse proxy stands before your internal servers to receive incoming traffic from the internet. Users make requests to the proxy’s IP or domain name, and the proxy decides which server in the back-end should handle each request.

ASCII DIAGRAM: Reverse Proxy Setup

 Internet              Reverse Proxy              Internal Network
-------------------------------------------------------------------------
|        |            |            |            | WS1 | WS2 | ... | WSn  |
|        |            |            |            |-----|-----|     |-----|
|  WWW   |---Request--|     RP     |---Request--|     |     |     |     |
|        |<--Response-|            |<--Response-|-----|-----|-----|-----|
|        |            |            |            |     |     |     |     |
-------------------------------------------------------------------------

Easy Way to Remember: Forward vs. Reverse

  1. Forward Proxy
  2. Acts on behalf of the client.
  3. Clients connect to resources through it.
  4. Provides client anonymity, caching, or content filtering.

Analogy: A personal assistant (forward proxy) obtains data from the outside world, so external services see the assistant rather than the real person making the request.

  1. Reverse Proxy
  2. Acts on behalf of the server.
  3. Internet clients see the proxy as the “server.”
  4. Balances load, hides internal infrastructure, adds security layers.

Analogy: A receptionist or front desk (reverse proxy) routes incoming callers or visitors to the correct department, ensuring they never directly see or contact internal offices without going through the receptionist.

Additional Advantages of Proxies

ASCII DIAGRAM: Combined Reverse Proxy / Cache

+--------------+      +---------------+      +---------------+
|   Internet   | ---> | Reverse Proxy | ---> |   Web Server  |
+--------------+      |  + Cache      |      +---------------+
                       +---------------+

Considerations