Content Delivery Networks (CDNs) are globally distributed networks of edge servers that cache and deliver web content from locations nearest to end users, dramatically reducing latency and origin server load. CDNs sit between users and origin servers, serving as intelligent reverse proxies that make routing decisions based on real-time performance metrics, geographic proximity, and server health. The fundamental trade-off in CDN architecture is between cache hit ratio (how often content is served from cache) and content freshness β this tension shapes every caching policy, TTL setting, and invalidation strategy you'll configure.
What This Cheat Sheet Covers
This topic spans 15 focused tables and 114 indexed concepts, 108 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Core CDN Architecture Components
The building blocks every CDN is assembled from, traced along the path a request actually takes. Edge servers at distributed PoPs are where users land; origin shield and tiered caches sit behind them to shelter the origin; and anycast, DNS routing, and the cache key decide which edge answers and what counts as the "same" cached object. Get the cache key wrong and your hit ratio collapses no matter how good the rest of the architecture is.
| Component | Example | Description | |
|---|---|---|---|
cdn.example.comβ edge-sjc15.cdn.net | β’ Geographically distributed cache server at a Point of Presence β’ serves cached content to nearby users and fetches from origin on cache miss | ||
origin.example.com:443 | β’ Source-of-truth server hosting original website content β’ CDN fetches content here on cache misses and periodically revalidates | ||
Edge tier β Shield β Origin | β’ Additional caching layer between edge servers and origin that consolidates requests β’ dramatically reduces origin load by creating a three-tier hierarchy (Edge β Shield β Origin). | ||
Regional cache in Singapore serves Asia-Pacific edges | β’ Hierarchical caching architecture with regional mid-tier caches β’ edge servers check regional cache before hitting origin, improving cache hit ratio for multi-region deployments | ||
Same IP 203.0.113.1routes to nearest PoP | β’ Network routing method where multiple servers share one IP address β’ BGP automatically routes users to the nearest healthy edge server based on network topology | ||
GeoDNS returns edge-eu.cdn.net for EU | β’ Traditional CDN routing that returns different IP addresses based on user's geographic location or latency β’ DNS resolver determines which edge server to use | ||
CDN terminates TLS, fetches from origin HTTP | β’ Intermediary server that sits in front of origin servers β’ CDN acts as reverse proxy handling client connections while communicating separately with origin | ||
GET /api/data?id=5cache key: url+id | β’ Identifier used to store and retrieve cached objects β’ typically constructed from URL, query params, headers (Vary), cookies β cache key design directly impacts cache hit ratio |