A Content Delivery Network (CDN) is a collection of connected data centers around the world that sit between your web visitor and your server, which we’ll call your origin server. When a web page is visited the CDN first checks the edge or proxy server at the data center local to your visitor to see if a cached version of the page or any other resources they requested are available there. If they are not, then the edge server will relay the request to the origin server which will supply the missing resources to the edge server. The edge server caches them for future use and sends them on to the web visitor. If the visitor is in luck and the edge server has a copy of the page, then it delivers that local copy. That is usually much faster than asking your origin server to rebuild and serve those resources every time a request is sent.
It also provides a bit of security if configured correctly. The visitor to your website only sees the IP address of the CDN and its edge servers and not your origin server. On the origin server you can configure it to accept requests from the CDN, making it more difficult for a would be hacker to poke at the boundary of your origin server.
Another example of the value of a CDN, and the application of edge computing we just talked about, is the rise of video streaming services on the edge like Cloudflare Stream. Video data is large and costly to move around the Internet, but like all data it’s cheap to store. Using their Stream service, which stores local copies of the video material, you can stream to a user relatively inexpensively. This opens up a world of possibilities for video publishing by small organizations without significant resources to invest in video marketing or training.
For all these reasons, having a CDN as part of your content delivery system is a very good idea, even for small sights that don’t expect a lot of visits. Perhaps especially for small sites as they usually are not hosted on powerful servers and can be easily overwhelmed by a spike in traffic. A CDN like Cloudflare usually offers a free plan with unlimited outgoing bandwidth for personal sites and small companies.Back