Content Delivery Network
A CDN answers requests from servers near the requester, trading a single origin for many cached edges.
A content delivery network is a distributed set of edge servers that cache and serve content close to the requester instead of routing every hit back to one origin. The win is latency — fewer network hops and less contention — and resilience, since the origin only has to handle cache misses and can survive a traffic spike that would otherwise flatten it directly.
Routing a request to the "nearest" edge is itself an interesting problem, and CDNs mostly solve it with Anycast or with Domain Name System tricks: the same IP address is announced from many locations, and normal internet routing (BGP) sends each client to whichever announcement is topologically closest, with no client-side logic involved. Some CDNs instead run DNS resolvers that return different edge IPs depending on where the query came from — geolocation by resolver, not by packet.
Caching introduces its own correctness problems. Static assets (images, JS bundles) are easy — hash the filename and cache forever. Anything personalized or frequently updated needs Cache Invalidation, which is famously one of the two hard problems in computer science. CDNs handle this with TTLs, purge APIs, and increasingly with edge compute — small pieces of application logic (auth checks, A/B routing, header rewriting) that run at the edge instead of the origin, blurring the line between "CDN" and "distributed platform."
The tradeoff CDNs make explicit is between consistency and locality: an edge node can serve a slightly stale copy fast, or fetch a fresh one slowly. That's the same tension Eventual Consistency names in distributed databases, just applied to HTTP responses instead of replicated state.
See also6
Anycast
Anycast announces the same IP address from many locations and lets normal routing send each client to the nearest one.
Networks & Distribution6 connections
Domain Name System
The distributed directory translating names to addresses, and the layer where propagation delays live.
Systems & Tooling16 connections
Load Balancing
A load balancer spreads requests across many backend instances, turning "one server" into "one address."
Networks & Distribution8 connections
Eventual Consistency
A guarantee that replicas converge given no further updates, without guaranteeing when.
Networks & Distribution16 connections
API Gateway
An API gateway is the single front door to a set of backend services, handling cross-cutting policy once instead of per-service.
Networks & Distribution6 connections
HTTP Caching
The set of headers that let a browser or intermediary reuse a previous response instead of re-fetching it.
Web Platform9 connections
Related1
Nearby in the graph rather than deliberately chosen. Looser, sometimes surprising.
Linked from7
- AnycastNetworks & Distribution
Anycast announces the same IP address from many locations and lets normal routing send each client to the nearest one.
- API GatewayNetworks & Distribution
An API gateway is the single front door to a set of backend services, handling cross-cutting policy once instead of per-service.
- Bloom FilterComputation & Algorithms
A probabilistic set membership structure that can say "definitely not present" but only "probably present."
- Consistent HashingComputation & Algorithms
A hashing scheme where adding or removing a node remaps only a small fraction of keys, not nearly all of them.
- DNS over HTTPSNetworks & Distribution
DNS over HTTPS wraps DNS lookups in encrypted HTTPS requests, hiding query contents from anyone but the resolver.
- HTTP CachingWeb Platform
The set of headers that let a browser or intermediary reuse a previous response instead of re-fetching it.
- Load BalancingNetworks & Distribution
A load balancer spreads requests across many backend instances, turning "one server" into "one address."