---
title: "CDN (Content Delivery Network)"
description: "A CDN is a distributed network of edge servers that serves your content from the location nearest each visitor. Learn how it cuts latency and stops DDoS."
url: "https://nodea.io/en/glossary/cdn"
lang: "en"
updated: "2026-07-13"
---

# CDN (Content Delivery Network)

> A CDN (Content Delivery Network) is a globally distributed network of edge servers that caches website content and serves it from the point of presence closest to each visitor, reducing latency and offloading the origin server.

A **CDN** (Content Delivery Network) is a network of servers distributed across many geographic locations that stores cached copies of a website's content and delivers it from the node — called a point of presence (PoP) — closest to each visitor. Physics is the reason it works: a request answered from a data centre 50 km away completes far faster than one that must cross an ocean to the origin server and back.

## How a CDN works

A site joins a CDN by pointing its DNS at the provider, after which visitor traffic lands on the nearest edge node first. The node checks its cache: on a hit, the response goes out immediately; on a miss, the node fetches the asset from the origin, stores it according to the origin's [Cache-Control](https://nodea.io/en/glossary/cache-control) headers, and serves it. Static assets — images, CSS, JavaScript, fonts, video segments — cache best, but modern CDNs also cache full HTML pages, terminate TLS at the edge, and run serverless functions there (edge computing).

The measurable effects are lower [TTFB](https://nodea.io/en/glossary/ttfb), a faster [LCP](https://nodea.io/en/glossary/lcp), reduced bandwidth and CPU load on the origin, and far better behaviour under load. Because traffic is spread across hundreds of PoPs, a CDN also absorbs volumetric [DDoS](https://nodea.io/en/glossary/ddos) attacks by design, and most providers bundle a web application firewall, bot filtering and automatic TLS certificates.

## Practical use cases

CDNs are standard equipment for e-commerce stores with international customers, media-heavy sites, software update distribution, video streaming and API acceleration. They are equally valuable as insurance: a marketing campaign, a viral post or a press mention can multiply traffic tenfold in minutes, and an edge cache keeps the origin — whether shared hosting or a VPS — from collapsing under it. Well-known providers include Cloudflare, Akamai, Fastly, Amazon CloudFront and bunny.net, several of which offer free tiers adequate for small sites.

The main caveat is cache invalidation: after deployments, stale copies must be purged or busted with fingerprinted filenames, or visitors may see outdated content for hours.

### Does a CDN replace web hosting?

No. A CDN sits in front of your hosting and caches copies of its content; the origin server still runs the application, database and any logic that cannot be cached. Some platforms blur the line by executing code at the edge, but a conventional website always needs an origin.

## Related

- [Cache-Control](https://nodea.io/en/glossary/cache-control)
- [TTFB](https://nodea.io/en/glossary/ttfb)
- [Reverse Proxy](https://nodea.io/en/glossary/reverse-proxy)
- [DDoS](https://nodea.io/en/glossary/ddos)
- [LCP (Largest Contentful Paint)](https://nodea.io/en/glossary/lcp)

---

Languages: [pl](https://nodea.pl/pl/slownik-pojec/cdn.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
