What is CDN?

Understand what a CDN is and why it is useful

A kindCDNrepresentativeContent delivery network.

It is a series of servers distributed around the world, and they are linked together.

To help speed up website access, their job is to distribute assets (such as images, JavaScript files, CSS, and HTML) so that they are physically and reasonably close to every user who might want to visit your website in order toIncrease connection speedAnd reduce the delay.

CDN is the ultimate cache and the cheapest way to provide content on a global scale.

Visitors will never visit the actual web servers hosting your files, but those CDN servers, which helps to reduce the load.

CDN provides

  • speed, Closer to the user’s network can increase speed and reduce latency
  • redundancy, If one node of the CDN fails, the other nodes can handle the traffic
  • lower the costCompared with processing all traffic in a centralized location that may not be optimized for large amounts of traffic, in terms of bandwidth and server power
  • SafetyBy adding other protection levels at the CDN node level. Not all CDNs do this, but most CDNs do it and also introduce mitigation measures for DDoS attack protection

CDN obtains the original resources from the source server. As long as the source remains the same, it will continue to provide a local copy of its assets:

Each CDN server is located in a different continent, and depending on how the CDN is built, is also located in a different area of a continent.

Every large company uses CDN to service assets, and you can also take advantage of the services of companies such as CDNCloud flare,Amazon CloudFront,Google Cloud CDN,Azure CDNor others.

CDN can also be directly integrated through your virtual host. For example, I use Netlify, which integrates automated CDNs, which makes my website run quickly everywhere in the world.


More web tutorials: