|
|
|
|
|
by billmalarky
4013 days ago
|
|
CDNs don't host the files, your servers do. They cache copies of the files across their CDN network and serve the files from their cache until the cache expires, then they go and get the file from you again to rebuild their cache. As a practical example, you might have an image on your webserver. When it goes viral on reddit, the request for the image hits the CDN first, not your servers (that's why they call it reverse proxying), they see that they don't have a cached version of the file, or their cached version has expired, so the CDN sends a request to your server, copies the file, and then proceeds to serve that file from their cache for the next million user requests or until the cache is set to expire (usually 24 or so hours, more than long enough for the traffic hitting your image url to die down). Basically, the CDN made it so your actual servers (and thus your host bandwidth bill) served one request. Not 1 million requests. Now typically you will foot the bandwidth bill for the CDN as well, but Cloudflare has a tiered pricing structure that is well below the rest of the competition. See moot (owner of 4chan) talk about cost savings here: https://news.ycombinator.com/item?id=6682324 |
|
Just saying that when I contacted them, they were clear that we shouldn't use them for images or media, and their general ToS agrees.
Their enterprise pricing starts cheap so if they throw in "unlimited bandwidth for everything" then it'd be quite a good deal.