Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: queue.acm.org/detail.cfm?id=1647302 –  Evan Anderson Jul 15 '10 at 14:35
add comment

2 Answers

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
add comment

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 cloudharmony.com/clouds_cdn for a starter list. –  rmalayter Nov 17 '10 at 6:05
add comment

Your Answer

 
discard

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