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.
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.
- 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.
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:
- Introduction to WebSockets
- How HTTP requests work
- List of HTTP request headers
- List of HTTP response headers
- HTTP and HTTPS
- What is RFC?
- HTTP protocol
- HTTPS protocol
- The curl guide for HTTP requests
- HTTP cache
- List of HTTP status codes
- What is CDN?
- HTTP/2 protocol
- What is the port
- DNS, Domain Name System
- TCP protocol
- UDP protocol
- Introduction to REST API
- How to install a local SSL certificate in macOS
- How to generate a local SSL certificate
- How to configure Nginx for HTTPS
- A simple Nginx reverse proxy for serving multiple Node.js applications from subfolders
- What is a reverse proxy?