Proxy & Delivery Systems in System Architecture

basic · System Architecture

8. Traffic Intermediaries & Asset Delivery Networks In a production infrastructure network, a client rarely establishes a direct, unmediated connection to a raw application server node. Instead, requests flow through an intermediate layer of specialized network proxies and edge caching networks. These intermediary systems sanitize incoming traffic, shield internal private server topologies, and optimize physical latency by caching data closer to the end user. 1. Shielding the Client: Forward Proxy A Forward Proxy sits directly in front of a group of client machines (users) and acts as an intermediary checkpoint between those internal clients and the external public internet. FORWARD PROXY TRAFFIC FLOW INTERNAL PRIVATE NETWORK PUBLIC INTERNET ┌──────────────────────────┐ ┌───────────────┐ ┌─────────────────┐ │ Client Node A │ ───► │ │ │ Target Public │ │ Client Node B │ ───► │ Forward Proxy │ ───────► │ Web Server │ │ Client Node C │ ───► │ │ │ (Sees Proxy IP) │ └──────────────────────────┘ └───────────────┘ └─────────────────┘ Production Mechanics When a client machine makes a request to an external web destination, the request passes through the forward proxy first. The proxy strips out the client’s real source IP address, intercepts the outbound payload, opens a connection to the public internet using its own IP address, and passes the response back to the client. Primary Production Use Cases Anonymity & Privacy: Completely hides the internal network structure and specific IP addresses of your company's workstations from the outside web. Content Filtering & Compliance: Used within corporate enterprise networks to intercept, inspect, and block access to specific blacklisted domains or unauthorized external services. Centralized Caching: Caches frequently accessed external files (like large operating system software updates) inside the proxy server memory, preventing multiple internal machines from wasting company internet bandwidth downloading the exact same asset repeatedly. 2. Shielding the Infrastructure: Reverse Proxy While a forward proxy protects the client, a Reverse Proxy acts in the exact opposite direction: it sits directly in front of a cluster of backend application servers and acts as the gatekeeper for all incoming external public requests. Production Mechanics When an external web user sends a request to your application domain, the connection terminates at the reverse proxy layer first. The proxy evaluates the request configuration and routes it across your internal, private server network blocks. The end user remains completely blind to the fact that you have multiple separate backend machines running behind the scenes. Primary Production Use Cases Security & Topology Concealment: Your core microservice endpoints and database engines sit safely inside an isolated private network, completely unexposed to the public internet. The reverse proxy is the only surface exposed to attackers. SSL/TLS Termination: Managing cryptographic handshakes on every single application server wastes immense CPU processing power. A reverse proxy handles the SSL/TLS decryption step right at the edge of the network, passing fast, unencrypted, standard HTTP requests internally to your backend nodes over secure private lanes. Basic Load Balancing: Distributes incoming web requests evenly across multiple identical backend server containers to prevent any single container from overloading. 3. Global Low-Latency Edge Storage: CDN A CDN (Content Delivery Network) is a globally distributed network of edge proxy servers (called Points of Presence - PoPs ) designed to cache and serve high-volume static and dynamic assets closer to the user's physical geographic location. The Latency Optimization Mechanics If your primary backend infrastructure is physically hosted in a cloud data center in Hyderabad, and a web browser in New York fires an HTTP request for your application's compiled React JavaScript bundle or homepage imagery, that packet must travel around the world over fiber lines, introducing massive round-trip time ( RTT latency ). A CDN completely bypasses this: You bind your static asset store or application routing layer to a CDN provider (like Cloudflare or AWS CloudFront). When the New York user requests the file, the DNS routing layer shifts the request to the CDN edge server physically located inside New York. Cache Hit: If the New York edge server already has a copy of that file cached, it serves it to the user instantly in milliseconds, completely bypassing your Hyderabad origin servers. Cache Miss: If the file is missing from the edge server, it fetches it from your Hyderabad origin data center once , caches a copy locally on its own high-speed storage drives, and serves it to all subsequent local users. 4. Conserving Address Space: NAT (Network Address Translation) NAT (Network Address Translation) is a networking standard executed inside local routing firewalls to map an entire private network of distinct internal IP addresses onto a single, shared public IP address. NAT (NETWORK ADDRESS TRANSLATION) INTERNAL VPC COLD STORAGE PUBLIC INTERNET ┌──────────────────────────┐ ┌───────────────┐ ┌─────────────────┐ │ Private IP: 10.0.1.5 │ ───► │ NAT Gateway │ │ External Public │ │ Private IP: 10.0.1.6 │ ───► │ Translates │ ───────► │ Web Service │ │ Private IP: 10.0.1.7 │ ───► │ to Single │ │ (Sees Public IP │ └──────────────────────────┘ │ Public IP │ │ 52.95.12.110) │ └───────────────┘ └─────────────────┘ Production Mechanics As we discussed in foundational networking, IPv4 public addresses are highly scarce. If you have a private cloud network cluster containing 500 independent microservice application containers, assigning a public IP address to each one would be incredibly expensive and an immense security liability. Instead, all 500 instances are assigned local Private IP Addresses (e.g., within the 10.0.0.0/16 range). When a backend server needs to pull an external package update from the public web: It passes the packet to a NAT Gateway . The NAT Gateway opens its internal translation lookup table, rewrites the packet’s private source IP header to match the gateway’s single Public IP Address , and tracks the unique source port mapping. When the internet target returns the response, the NAT Gateway looks up the mapping index and routes the incoming data packet straight back to the matching internal private server instance. Traffic Delivery Systems Reference Matrix System Vector Module Target Alignment Focus Primary Operational Function Critical Production Rule / Guardrail Forward Proxy Client Machine Pool Protection Hides user identity client footprints and enforces content filtering out to the web. Clear internal proxy cache regularly to prevent stale assets from breaking local client application runs. Reverse Proxy Infrastructure Backend Shielding Handles incoming request routing, SSL decryption termination, and hides backend topology. Avoid single points of failure. Always scale reverse proxies horizontally or secure them with failover virtual IPs. CDN (Edge Proxy) Global Latency Reduction Caches high-volume static files (JS, images) and media streams right at physical geographic edge locations. Set precise Cache-Control Headers (TTL) to ensure when you deploy a frontend code update, edge nodes purge old code formats instantly. NAT Gateway Address Space Translation Maps an entire internal private subnet onto a single secure public outbound routing pipeline. Monitor NAT Gateway throughput bandwidth metrics carefully; high-volume batch data exports can saturate gateway connections.

Back to System Architecture

Browse all study material on Careeroza