एक proxy अनुरोधों के लिए एक मध्यस्थ के रूप में कार्य करता है। एक forward proxy क्लाइंट के सामने बैठता है (उन्हें सर्वरों के लिए प्रस्तुत करता है), जबकि एक reverse proxy सर्वरों के सामने बैठता है (उन्हें क्लाइंट के लिए प्रस्तुत करता है) — load balancing, caching, security और अधिक को संभालता है। 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
