Ένα proxy λειτουργεί ως ενδιάμεσος για τις αιτήσεις. Ένα forward proxy βρίσκεται μπροστά από τους clients (τους αντιπροσωπεύει στους servers), ενώ ένα reverse proxy βρίσκεται μπροστά από τους servers (τους αντιπροσωπεύει στους clients) — χειριζόμενο load balancing, caching, ασφάλεια και πολλά άλλα. Τα reverse proxies είναι βασικά συστατικά σχεδιασμού συστημάτων.
Forward proxy vs reverse proxy
FORWARD PROXY → sits in front of CLIENTS, forwarding their requests to servers:
Client → FORWARD PROXY → Internet/Server
→ represents the CLIENT (hides client identity); for filtering, caching, anonymity,
access control (e.g. corporate proxies)
REVERSE PROXY → sits in front of SERVERS, receiving requests on their behalf:
Client → REVERSE PROXY → Backend servers
→ represents the SERVERS (clients don't see the backend); the common system-design component
