Scenario / Questions

Related to an another question I asked. This question seems similar but I’m wondering if there are any updates.

To support a single site that has users all over the world, I will create EC2 web servers in the US, Asia and Europe regions. The web server instances in the US and Asia regions will be backed by RDS replicas. Is it possible to load balance across these three regions? So when a customer from Spain goes to example.com, she should be routed to the EC2 instances in Europe region, a customer in Miami should be sent to the instance in Eastern US region, etc. Is this possible to do this with just AWS features? Are there docs on how to set this up?

Find below all possible solutions or suggestions for the above questions..

Suggestion: 1

Check out Amazon Route 53

http://www.allthingsdistributed.com/2010/12/dns_amazon_route_53.html

Route 53 is designed to be fast, easy to use, and cost-effective. It
answers DNS queries with low latency by using a global network of DNS
servers. Queries for your domain are automatically routed to the
nearest DNS server, and thus answered with the best possible
performance.

http://aws.amazon.com/route53/

Suggestion: 2

I realize that this is very old thread (2011) but I came across this in early 2015, so might someone else, hence clarifying that as of 2015, Amazon route 53 does indeed support GeoLocation based routing :

http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html#routing-policy-geo

Suggestion: 3

Zerigo offer GeoIP services seems cheap at about $20 a month. i use them for managing about 40 domains, but none of the GeoIP yet… there is another place called EdgeLocator who charge per million DNS requests. seems to be a PAYG service… have not used them, but you might want to check them out for testing…

Suggestion: 4

Have you looked at Amazon CloudFront?

Suggestion: 5

Nope, it’s not possible using built in AWS features. You’d need to get GSLB from a provider like Dynect

Suggestion: 6

use geo-ip routing, one provider here: http://www.maxmind.com/app/country

http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz
doesn’t sound like a tough deal,but keeping up todate mapping info might be tougher.

and effectively trivial,if … we can do..

Redirect one country

RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^FR$

RewriteRule ^(.*)$ http://fr.mybosses-dom.com $1 [NC,301,L]

and then redirect them to WWW.YOURDOMAIN.JP,(in japan (or singapore,or someplace close),
or to WWW.YOURDOM.COM, or WWW.YOUDOM.DE,etc.

we are in the midst of doing this ourselves.

Also see:

http://httpd.apache.org/docs/trunk/rewrite/remapping.html#archive-access-multiplexer