In this recipe, we're going to show you two Route 53 routing policies:
- Geolocation routing
- Failover routing
In fact, we're actually going to combine these two policies together. A perusal of the AWS documentation might lead you to believe that this isn't particularly common practice, but understand that by combining routing policies, you can do great things for your performance and availability.
Given that we're demonstrating a failover task, you'll want to set up two ELBs before we proceed. We're going to assume you're doing this in different regions, but this isn't strictly necessary. These ELBs will need to accept HTTP connections (on port 80
of course) and have at least one instance attached to them (which is passing its health check and serving content).
Note
The Creating security groups recipe in Chapter 4, Using AWS Compute deployed in two different regions, should fit the bill nicely.
You'll also need a domain name that you'd like to...