11

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?

Tony
  • 123
  • 1
  • 4

6 Answers6

5

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/

ckliborn
  • 2,778
  • 4
  • 25
  • 37
  • 1
    Route 53 does not support GSLB, yet. They are talking about it. However, changing your DNS is your "last line of defense" if AWS goes down completely, so using Amazon for that too is probably unwise. – Terence Johnson Aug 10 '11 at 01:02
3

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

Mandar Vaze
  • 131
  • 1
1

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...

TiernanO
  • 744
  • 7
  • 17
  • Zerigo doesn't appear to be using anycast, which means users probably won't be answered by the nearest DNS server. – Terence Johnson Aug 10 '11 at 01:21
  • in theory, your DNS should be provided by your ISP though, so you wont go direct, your ISP will... you should get results from them. but, yes, i can see it being a bit of a slow down... – TiernanO Aug 11 '11 at 13:43
0

Have you looked at Amazon CloudFront?

dtoubelis
  • 4,677
  • 1
  • 29
  • 32
  • 1
    Cloudfront is for static assets. I don't think it can't serve example.com/home.php. – Tony Mar 19 '11 at 15:53
  • you can to an extent. I ran my blog on wordpress behind a cloudfront distribution for a while... It worked, but it was not perfect. – TiernanO Aug 11 '11 at 13:45
0

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

skrewler
  • 308
  • 1
  • 3
  • 13
-1

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

dianevm
  • 132
  • 3
  • This describes the process for Apache, the OP wanted to know for ELB –  Jul 19 '11 at 07:09