4 ms·
A good CDN provides "close" (network latency wise) servers so if there are 30 assets to be loaded, most are done over a 10 ms hop, not a 60 ms hop. Get a compl
by modoc 15y ago
A good CDN provides "close" (network latency wise) servers so if there are 30 assets to be loaded, most are done over a 10 ms hop, not a 60 ms hop. Get a complex page with 100+ assets, or try to serve it to another continent and the difference is even more impressive.
Also if you're running a "busy" site off one server, it may not be busy enough to warrant a CDN's traffic off-loading perk. When you start talking about thousands and tens of thousands of requests per second, being able to off-load 80% of those requests makes a huge difference in how much hardware you need to deal with locally.
- ck2 15y agoThere should not be 100 externally loading elements on an initial page load, ever. Any site does that needs to get a better developer.
- modoc 15y agoSo say 50 elements. With a 50ms difference that's 2.5 seconds of total time. Most browsers will do 2-4 simultaneous connections, so let's say 4, that's still over 1/2 second faster page load. Now put that end user in Europe or Africa, and you're looking at 200-500 ms latency per call, versus 10 ms. You can see how the math works. Assets loaded on some of your recently submitted URLs: 21 - http://www.mozilla.org/en-US/firefox/10.0/releasenotes/ http://www.mozilla.org/en-US/firefox/10.0/releasenotes/ 60 - http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-Hoisting http://www.adequatelygood.com/2010/2/JavaScript-Scoping-and-... 104 - http://www.hollywoodreporter.com/thr-esq/falling-skies-lawsuit-tnt-font-285103 http://www.hollywoodreporter.com/thr-esq/falling-skies-lawsu... 282 - https://plus.google.com/u/0/111314089359991626869/posts/HQJxDRiwAWq https://plus.google.com/u/0/111314089359991626869/posts/HQJx... 54 - http://www.computerworld.com/s/article/9223601/Anonymous_dupes_users_into_joining_Megaupload_attack http://www.computerworld.com/s/article/9223601/Anonymous_dup... 67 - http://abcnews.go.com/blogs/politics/2012/01/rand-paul-in-pat-down-standoff-with-tsa-in-nashville/ http://abcnews.go.com/blogs/politics/2012/01/rand-paul-in-pa... 70 - http://www.wptavern.com/bad-behavior-in-the-wordpress-community http://www.wptavern.com/bad-behavior-in-the-wordpress-commun... etc.... The impact of reducing latency for each of those calls, and offloading those requests from your server(s) is a big deal for big sites.
- ck2 15y agoStrong upvote for defending your argument with researched examples. I guess I am old school, I'd never serve that many elements on initial page load, CDN or not, that's crazy. Each additional DNS lookup can add up to 2 seconds if it's a cold cache-miss. Most modern browsers/servers use pipelining so it's not a 50ms connect each time. Different continent I might understand the desire. But I have a server in VA that can serve western Europe at 75-100ms connect time, which is not horrible.