scott miles
scott miles

Reputation: 1517

Geolocation routing in Amazon/Cloud?

I have a web app hosted on amazon EC2 server. This application can be accessed through different countries say US, UK, China, India etc

My question is does amazon(or any other cloud service provider) cloud hosting provides the facility to host the servers in different countries (under EC2 by default or extra cost needs to be paid for that) so that content can be served fast from web servers ?

For example if request is coming from china and its served by EC2 server in china it will be bit faster than if it is served by server in US as request/response has to hop from nation grid/network to international network ?

Upvotes: 0

Views: 695

Answers (1)

Mark B
Mark B

Reputation: 200446

If you are using Route53 for DNS then you can use Geolocation based routing. Or since you are mainly concerned with routing to the fastest location (reducing latency) you could Route53's Latency based routing. The different Route53 routing policies are documented here.

I would suggest you first look into the possibility of using a Content Delivery Network like CloudFront which can cache your server responses in edge locations all over the world. When a user requests something that is in the CDN cache they will get a response from the closest CDN edge location. This will be faster and cheaper than managing multiple copies of your servers all over the world, as long as you are able to use the cache effectively.

Upvotes: 2

Related Questions