Skip to main content
QuantLab Logo
Glossary · Software

What is a CDN?

A CDN (Content Delivery Network) is a globally distributed network of servers that stores copies of your site's content close to each visitor — so a page loads from a machine a few miles away instead of one across the world, making it dramatically faster.

What a CDN means

A CDN is a layer of cache servers spread across the globe, positioned in data centers near where people actually are. Your real application lives at the origin — a single host or region — but if every visitor had to reach that one location, users on the far side of the planet would wait while their requests crossed oceans. A CDN solves that by keeping copies of your content at edge locations close to users, so most requests are answered locally.

The result is faster page loads, lower latency, and far less traffic hitting your origin server. The CDN absorbs the bulk of the load and hands your origin only the requests it truly needs to handle, which both speeds up the experience and makes the whole system cheaper and more resilient to traffic spikes.

Where it came from

CDNs emerged in the late 1990s, with Akamai a pioneer of the model, to solve a problem the early web was straining against: a popular site served from one location could not deliver images and downloads fast enough to a global audience. Pushing content out to servers near users fixed the speed-of-light bottleneck that no amount of origin horsepower could overcome.

Over the decades CDNs expanded well beyond static files. Today they cache dynamic content, terminate encryption, filter malicious traffic, and run application code at the edge. What began as a way to deliver big files quickly has become a core layer of modern web architecture that touches performance, security, and reliability all at once.

How it works

When a visitor requests a file, the request is routed to the nearest edge server. If that server already has a fresh copy in its cache, it returns it immediately — a cache hit. If not, it fetches the file from your origin once, stores it, and serves it; every later visitor in that region then gets the cached copy. Each cached item carries an expiration time that controls how long the edge may keep serving it before checking back with the origin.

The tricky part is cache invalidation — making sure users see new content after you change it. This is handled with expiration headers, content-hashed file names that change whenever the file does, and explicit purges that tell the CDN to drop a cached copy right away. Get it right and deploys are instant and consistent; get it wrong and users see stale pages. Many CDNs also run logic at the edge, letting you rewrite requests, do redirects, or personalize responses close to the user.

When it matters

A CDN matters any time your audience is geographically spread, your pages carry meaningful images or scripts, or you care about load times — which, for anything public-facing, you should, because speed directly affects conversion and search ranking. It is also a frontline defense: by absorbing traffic at the edge, a CDN blunts denial-of-service attacks before they reach your origin. For a small, single-region internal tool the benefit is modest, but for nearly any customer-facing site, a CDN is one of the cheapest, highest-impact performance upgrades available.

At QUANT LAB

Every site we ship is served through a CDN, and for the Next.js apps we build it is largely automatic. The framework fingerprints static assets so they can be cached forever at the edge and invalidated cleanly on each deploy, and our hosting serves pages and assets from edge locations worldwide by default. The practical effect is that a client's web application feels fast to a user in Sydney and a user in Atlanta alike, with no extra work on the client's part.

When we design cloud infrastructure for a client, we set the caching rules deliberately — long lifetimes for fingerprinted assets, careful purge logic for content that changes, and edge TLS to keep the connection secure and fast. Used well, the CDN does double duty as a performance layer and a first line of security in front of the origin.

Talk to the engineer who would build it

If you want a 30-minute conversation about making your site fast worldwide and resilient at the edge — not a pitch — book a call.

Web applications