I'm trying to figure out the effectiveness of using a CDN versus hosting images locally. Assuming that our load is such that serving an image or javascript file from the same server that is hosting the HTML content will not be any slower when compared against using a CDN, at what point does locality take effect?
My understanding of how a CDN works is that one request goes to the main CDN site for the file. This site only routes requests, so it issues a redirect to the other webserver that is (in theory) closer to the user making the request.
However, the overhead of 2 HTTP requests and 2 connections could actually add overhead compared to one request that suffers greater latency.
My question is, does anyone have any numbers or articles regarding at what file size decreased latency makes a big difference, and makes it an obvious choice to switch to a CDN?