ایک proxy درخواستوں کے لیے ایک درمیانی کردار ادا کرتا ہے۔ ایک forward proxy کلائنٹس کے سامنے بیٹھتا ہے (انہیں سرورز کے سامنے نمائندگی کرتے ہوئے)، جبکہ ایک reverse proxy سرورز کے سامنے بیٹھتا ہے (انہیں کلائنٹس کے سامنے نمائندگی کرتے ہوئے) — لوڈ بیلنسنگ، کیشنگ، سیکیورٹی، اور بہت کچھ کو سنبھالتے ہوئے۔ Reverse proxies اہم system-design اجزاء ہیں۔
Forward proxy بمقابلہ 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
