CDN (Content Delivery Network)
A CDN (Content Delivery Network) is a network of servers spread around the world that stores copies of website content — like images, videos, and web pages — so that it can be delivered to users from a location close to them.
Instead of every request travelling to one distant server, a CDN serves content from the nearest available point, making websites load faster for everyone regardless of where they are.
CDN (Content Delivery Network), explained at three levels
At home
A CDN stores copies of a website's content on servers in many locations around the world. When you visit a website that uses a CDN, the content is loaded from a server near you rather than from one far away. This is why a website hosted in the US can still load quickly for someone in Australia — the CDN has a copy nearby. You benefit from CDNs every day without realising it, as most major websites and streaming services use them.
At work
For businesses, a CDN improves website performance for users globally, reduces the load on the origin server, and provides resilience against traffic spikes and some types of cyberattacks. If your company's website or web application serves users across different regions, a CDN can dramatically improve their experience. CDN services (Cloudflare, AWS CloudFront, Akamai, Fastly) are typically straightforward to implement and offer significant performance returns relative to their cost.
At home
A CDN works by caching content at edge servers (also called Points of Presence, or PoPs) located in data centres around the world. When a user requests content, DNS directs them to the nearest edge server. If the edge server has a cached copy, it delivers it immediately (a cache hit). If not (a cache miss), the edge server fetches the content from the origin server, delivers it to the user, and stores a copy for future requests. Cache headers (Cache-Control, Expires, ETag) determine how long content stays cached and when it should be refreshed.
At work
CDN implementation involves configuring the origin server, setting cache policies for different content types (long TTLs for static assets like images and CSS, shorter TTLs or no caching for dynamic, personalised content), and managing cache invalidation when content is updated. Modern CDNs offer additional capabilities beyond caching: DDoS protection, Web Application Firewall (WAF), bot management, image optimisation, and edge computing (running custom logic at edge locations). CDN analytics provide visibility into cache hit rates, geographic traffic distribution, and performance metrics.
At home
Advanced CDN architectures support dynamic content acceleration using techniques like TCP optimisation (persistent connections, congestion window tuning between edge and origin), route optimisation (using the CDN's private backbone to avoid congested public internet paths), and prefetching (predicting which resources a user will need next). Edge computing capabilities (Cloudflare Workers, AWS Lambda@Edge, Fastly Compute) allow developers to run serverless functions at CDN edge locations, enabling personalisation, A/B testing, authentication, and request routing at the edge without round-tripping to the origin server.
At work
Enterprise CDN strategy involves multi-CDN architectures that distribute traffic across multiple CDN providers for redundancy and performance optimisation (using real-time performance data to route each request to the best-performing CDN). Origin shield configurations add a caching layer between the CDN edge and the origin server, reducing origin load during cache misses or purges. For video delivery, CDNs implement adaptive bitrate streaming (HLS, DASH) with per-quality-level caching and use chunked encoding to begin delivery before a segment is fully fetched. CDN costs at scale are significant and require careful monitoring of bandwidth consumption, request counts, and edge compute usage to optimise spend.
Real-world examples
At home
When Mei watches a cooking video on a streaming platform, the video does not stream all the way from a server in California. Instead, a CDN has copies of the video stored on a server in her city. The video plays quickly and smoothly because the data only needs to travel a short distance to reach her, rather than crossing an ocean.
At work
When Carlos's e-commerce company runs a flash sale that causes a massive spike in website traffic, the CDN absorbs the surge by serving cached product images, stylesheets, and JavaScript files from edge servers worldwide. The origin server only handles the dynamic parts (cart, checkout), preventing it from being overwhelmed. Without the CDN, the site would likely slow to a crawl or crash under the load.
Common confusions
- It's often assumed that CDNs replace web servers. A CDN works alongside your server, caching copies of content while the origin server remains the authoritative source.
- You might think only big companies need a CDN. CDNs are affordable, easy to implement, and benefit websites of any size with faster loading, DDoS protection, and improved reliability.
- It's tempting to think CDNs only help with static files. Modern CDNs also accelerate dynamic content and offer edge computing, security, and optimisation features.
For analysts
If your project involves a website or web application that serves users in multiple regions, include a CDN in the architecture from the start rather than treating it as a later optimisation. Specify the caching strategy in your requirements — which content should be cached and for how long — and plan for cache invalidation when content is updated. A well-configured CDN is one of the highest-impact, lowest-effort performance improvements available.
History & origin
The concept of content delivery networks was pioneered in the late 1990s, with Akamai Technologies founding one of the first CDN services in 1998. Early CDNs primarily cached static content like images to reduce load on origin servers. As streaming video, cloud applications, and global audiences grew throughout the 2000s and 2010s, CDNs became essential infrastructure that now delivers a majority of all internet traffic worldwide.