TechKnowSurge
VideoSecurityFree

Content Delivery Network (CDN)

A content delivery network (CDN) is a globally distributed system of servers that caches and delivers web content from locations close to end users, reducing latency and improving performance. CDNs provide both speed and high availability by serving cached content from regional nodes rather than routing every request back to a central origin server.

Complete this video to capture a CTF flag worth 1 point.

About this video

A content delivery network (CDN) is a globally distributed infrastructure of servers designed to reduce the latency and reliability issues that arise when users are geographically far from an origin server. Rather than routing every request across long distances — from South Africa to the Pacific Northwest, for example — a CDN intercepts DNS queries and directs users to the nearest available node, keeping response times low regardless of where in the world a request originates. The node either serves content that has already been cached or retrieves it from the origin on first request and stores a local copy for subsequent users. CDN content can be handled in two ways: operators can force pre-population across all nodes before any user requests arrive, or nodes can cache content organically as it is first accessed. Either approach means that after the initial retrieval, all subsequent users in that region benefit from a fast, local connection. While dynamic content typically must still be fetched from the origin server, static assets — which can represent the vast majority of a site's total payload — are served entirely from the cache. This architecture delivers two primary benefits: measurably improved performance for end users and high availability, since cached content remains accessible across multiple distributed nodes even if the origin experiences disruption.

What you'll learn

What's covered

Content Delivery Networks

Key terms

Content Delivery Network
CDN
A globally distributed network of servers that caches and delivers content to users from the nearest geographic location to improve performance and availability.
Domain Name System
DNS
A hierarchical naming system that translates human-readable domain names into IP addresses.
Latency
The time delay between sending a request and receiving a response over a network.
Caching
The process of storing copies of content on a server so future requests can be served faster without retrieving the original source.
Availability
The assurance that systems and data are accessible and operational when needed by authorized users.
Load Balancer
A device or software that distributes incoming network traffic across multiple servers to ensure availability and performance.

Topics

Cdn Dns Redirection Web Performance Caching Networking Load Balancing

Transcript

It's amazing: we can communicate across this planet, but there still is a slight delay — a delay that may or may not be a big deal. One of the ways that we can counteract that is a content delivery network, or CDN.

The Scenario

Let's develop a little scenario here. I'm up here in the Pacific Northwest in the United States of America, and there are some data centers around here where I could actually host web services. So let's say I'm hosting web services here. The farthest away that you can get from me would be down in South Africa, so let's say we have a user down there.

Now, it is amazing how fast communication can happen and how good a service they can get down there. But there is a delay; this is not without a delay. There are some problems that can occur when you have long distances like this. This is a good case where maybe a content delivery network would work.

What a CDN Is

So what is a CDN, or a content delivery network? First of all, it's a network. A network of what? It's a network of machines — we see machines all around the world here. And what do these machines do? They deliver content. Content delivery network. There it is.

What I would do with my services over here is subscribe to a CDN. I'd subscribe to the CDN, and then all of these servers would be working for me.

How It Works for the User

Let's give an example of this user down here in South Africa. They have a CDN location near them. What happens is, when they do a DNS resolution for my servers up here, something intercepts that and says, "Yeah, you want to actually go to this server down here." So this user is going to make a connection into this server near South Africa.

They request certain information from my website, and this may or may not be prepopulated on here. So now it goes and grabs a copy of it, and downloads it, and caches it. There might be a little delay the first time a user accesses this information, but once they access it, any other users that access this now have a fast connection, and it's really close to them, so they get a much faster connection.

As I hinted towards, you can either prepopulate this stuff — force it, and say, "Yeah, prepopulate all of these machines so it's already there" — or, when they retrieve it the first time, then it will just make a cache of that, and any other users then will access that cache.

Now, for a site, some of the information is dynamic, and it'll always go back to the main server for that dynamic information, but everything else that can be cached, it'll access from the local server. As an example, I worked with a SaaS company, and 97% of our content could be downloaded onto these cache systems. So 97% of the stuff could operate at a much faster speed through this content delivery network.

These CDNs really provide high availability and performance: performance as I mentioned before, and then high availability, because now you have this whole network of cached content that could be accessed anywhere in the world.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →