Delivering Content Globally with Route 53, CloudFront and Global Accelerator
This lesson explains how edge networking services deliver DNS answers, content and application traffic to users around the world quickly and reliably.
Learning outcomes
After completing this lesson, you will be able to:
- Describe what Amazon Route 53 provides, including its routing policies.
- Distinguish Amazon CloudFront from AWS Global Accelerator.
Amazon Route 53
Route 53 is a highly available DNS service that translates names such as www.example.com into IP addresses. It also offers domain registration and health checks.
Routing policies decide which answer Route 53 gives. Simple routing returns one answer. Weighted routing splits traffic by percentage, for example sending 10% of users to a new version. Latency routing sends each user to the Region that responds fastest for them. Failover routing sends traffic to a backup when health checks show the main site is unhealthy. Geolocation routing chooses by the user's country or continent, for example to show local content. The following table summarises the policies.
| Routing policy | Behaviour |
|---|---|
| Simple | Returns one answer |
| Weighted | Splits traffic by percentage, e.g. 90/10 for testing |
| Latency | Sends users to the Region with the lowest latency |
| Failover | Sends traffic to a backup when the primary is unhealthy |
| Geolocation | Routes by the user's country or continent |
Route 53 routing policies
CloudFront versus Global Accelerator
CloudFront and Global Accelerator both use AWS edge locations to make applications faster for users around the world, but they work differently. Amazon CloudFront is a content delivery network: it keeps copies, a cache, of content such as images, videos, web pages and API responses at edge locations near users, so most requests are answered nearby. It works with web (HTTP) content, integrates with AWS WAF and Shield, and can lower data transfer costs.
AWS Global Accelerator does not cache. It gives an application two fixed IP addresses and carries users' traffic from the nearest edge location over the AWS global network to the application, switching quickly to another Region if one fails. It works with any TCP or UDP application, such as games. The following table summarises the differences.
CloudFront or Global Accelerator?
Serving customers worldwide
A software company has customers in Europe and the United States. It runs its application in two Regions and uses three services together:
| Service | Role |
|---|---|
| Route 53 | Owns the domain name; latency routing sends European users to Frankfurt and American users to Virginia; health checks fail over if a Region has problems |
| CloudFront | Caches the site's images, videos and scripts at edge locations near users, so pages load quickly |
| Global Accelerator | Used for the company's real-time collaboration feature (non-HTTP traffic), giving it two fixed IP addresses and fast routing over the AWS network |
If the question were only "make our images load faster around the world", CloudFront alone would be the answer; "send users to the closest Region" points to Route 53 latency routing.
What does Amazon Route 53 do?
Show answer
It is AWS's DNS service: it registers domain names, translates names into IP addresses and routes users with policies such as latency or failover.
Exam Tips
Remember for the exam
- DNS and domain registration point to Route 53.
- To route users to the Region with the lowest latency, use Route 53 latency routing.
- To fail over to a backup site, use Route 53 failover routing with health checks.
- To cache content close to users worldwide, use CloudFront.
- Static IP addresses and routing over the AWS network for global applications point to Global Accelerator.