Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im going to implement CDN, but im still confuse how the CDN recognize where the request come from. for example, I have 2 servers. one in US and one in Japan. when request come from Hong Kong, I want the contents served from Japan server, because it closer. So, how the CDN can recognize the request from Hong Kong and serve contents from Japan?

If in cluster, we have load-balancer to distribute workload, how about CDN to serving contents from specific server depending on request location?

Thanks in advance

share|improve this question
Obligatory Vixie ACM paper link: – Evan Anderson Jul 15 '10 at 14:35

The short answer to your question is "BGP tomfoolery". The medium-length answer is, in addition to BGP tomfoolery, DNS tomfoolery. The longer answer is... well, quite a bit longer, and you're not paying me to explain geobalancing, which ain't an easy topic to begin with. Perhaps someone will be along shortly to help. If not, this book is one of the better ones I've found, and will give you a good starting point.

share|improve this answer

Use akamai and leave it to them on how it works, basically you should be checking you static file speed after using CDN . For example if we wish to ride a bike it is not necessary to know how the bike works !!

share|improve this answer
If you don't want to build your own I would also recommend akamai – The Digital Ninja Jul 15 '10 at 14:49
For what sounds like a smaller shop, Akamai is massively expensive and overkill. A contract-free pay-as-you-go CDN would be a better option (there are a lot of them these days). See for a starter list. – rmalayter Nov 17 '10 at 6:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.