Skip to content

What is a CDN?

Discover what is a CDN and why it's useful

A CDN stands for Content Delivery Network.

It’s a series of servers distributed all around the globe, all linked together.

In the context of helping speed up a website, their job is to distribute assets (like images, JavaScript files, CSS, also HTML) so that they are reasonably near - physically - to every user that might want to access your website, in order to improve the speed of the connection and reduce the latency.

CDNs are the ultimate cache, and the cheapest way to serve content all around the world.

Visitors will never access the actual web server that hosts your files, but instead they will hit those CDN servers, helping to reduce the load.

A CDN provides

A CDN gets the original resource from an origin server, and as long as the origin does not change, it will continue serving its local copy of an asset:

Each CDN server is located in different continents, and depending on how the CDN is built, in different parts of a continent as well.

Every major company uses CDNs for serving assets, and you can too, by leveraging the services of companies like Cloudflare, Amazon CloudFront, Google Cloud CDN, Azure CDN or others.

CDNs might be integrated directly by your web hosting as well. I use Netlify for example, and they integrate an automatic CDN, which makes my site fast in every location of the world.

I wrote 17 books to help you become a better developer, download them all at $0 cost by joining my newsletter

  • C Handbook
  • Command Line Handbook
  • CSS Handbook
  • Express Handbook
  • Git Cheat Sheet
  • Go Handbook
  • HTML Handbook
  • JS Handbook
  • Laravel Handbook
  • Next.js Handbook
  • Node.js Handbook
  • PHP Handbook
  • Python Handbook
  • React Handbook
  • SQL Handbook
  • Svelte Handbook
  • Swift Handbook

JOIN MY CODING BOOTCAMP, an amazing cohort course that will be a huge step up in your coding career - covering React, Next.js - next edition February 2025

Bootcamp 2025

Join the waiting list