Lesson 2 of 4 Networking and Content Delivery

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 policyBehaviour
SimpleReturns one answer
WeightedSplits traffic by percentage, e.g. 90/10 for testing
LatencySends users to the Region with the lowest latency
FailoverSends traffic to a backup when the primary is unhealthy
GeolocationRoutes by the user's country or continent
Match the pairs

Route 53 routing policies

Exam skills 3.5.3

Match each requirement with the Route 53 routing policy that meets it.

Log in to try this activity Interactive activities are free with an account.

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.

Amazon CloudFront
What it isA content delivery network (CDN)
How it worksCaches content (images, video, web pages, APIs) at edge locations near users
Works withHTTP content
ExtrasIntegrates with WAF and Shield; can reduce data transfer costs
AWS Global Accelerator
What it isA network accelerator
How it worksRoutes traffic onto the AWS global network at the nearest edge through two static IP addresses, with fast Regional failover
Works withAny TCP or UDP application
ExtrasImproves availability and performance
Sort into groups

CloudFront or Global Accelerator?

Exam skills 3.5.3 · 3.2.1

Decide which service each statement describes.

Log in to try this activity Interactive activities are free with an account.
Worked example

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:

ServiceRole
Route 53Owns the domain name; latency routing sends European users to Frankfurt and American users to Virginia; health checks fail over if a Region has problems
CloudFrontCaches the site's images, videos and scripts at edge locations near users, so pages load quickly
Global AcceleratorUsed 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.

Check yourself

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.