Reverse Proxy, CDN, and Edge Computing

Reverse Proxy

Sits in front of your servers. Clients talk to the proxy, proxy talks to servers.

Client ──► Reverse Proxy (nginx/Envoy) ──► App Server 1 ──► App Server 2 Handles: SSL termination, compression, caching, load balancing, rate limiting, request routing, security (WAF)

CDN (Content Delivery Network)

Geographically distributed cache. Serves static content from the nearest edge server.

Push vs Pull CDN

TypeHowBest For
PullCDN fetches from origin on first request, cachesDynamic content, most sites
PushYou upload content to CDN proactivelyLarge static files, known content

Edge Computing

Run compute at CDN edge nodes (Cloudflare Workers, Lambda@Edge). Process requests close to users without hitting origin.

Key Takeaways