Networkingcontent delivery networkedge cache
CDN
Definition
A CDN is a geographically distributed network of edge servers that serves cached copies of content, fetching from the origin only on a miss or after expiry.
In practice
Serving a file from an edge 10 ms away instead of an origin 150 ms away improves latency and removes most of the bandwidth bill from the origin. Static assets, images and video are the classic fit; cacheable API responses can benefit too.
Cache keys, Cache-Control headers and invalidation decide whether a CDN helps or serves stale or private data. Versioned file names (app.3f9a.js) let assets be cached for a year while still updating instantly on deploy.
Example
A site serving 50 TB of images per month with a 95% CDN hit ratio sends only about 2.5 TB to the origin.