Improving Global Availability with AWS Global Accelerator
This lesson explains how AWS Global Accelerator routes traffic for global users over the AWS network to healthy regional endpoints through static IP addresses.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how Global Accelerator works.
- Distinguish Global Accelerator from CloudFront and Route 53.
How Global Accelerator works
An accelerator provides two static anycast IPv4 addresses (optionally your own through BYOIP, and dual-stack IPv6) announced from AWS edge locations. Client traffic enters the AWS network at the nearest edge and travels over the AWS backbone to the application, avoiding congested internet paths. Listeners accept TCP or UDP on ports or port ranges; each listener routes to endpoint groups, one per Region, containing endpoints: ALBs, NLBs, EC2 instances or Elastic IP addresses. A traffic dial sets the percentage of traffic sent to each Region, and endpoint weights distribute traffic within a group. Health checks (the load balancer's own health for ALB and NLB endpoints) remove unhealthy endpoints, and failover between Regions happens in seconds without DNS caching delays. Client affinity keeps a client on the same endpoint. Custom routing accelerators map users to specific instances and ports, for example game sessions.
Global Accelerator compared with CloudFront and Route 53
Global Accelerator, CloudFront and Route 53 all improve global applications, but in different ways. CloudFront caches HTTP content at the edge; Global Accelerator proxies TCP and UDP connections to regional endpoints and does not cache; Route 53 routing policies steer users with DNS answers, subject to client DNS caching. The following table summarises the choice.
| Requirement | Service |
|---|---|
| Cache static and dynamic HTTP content near users | CloudFront |
| Static IP addresses that partners can allow-list | Global Accelerator |
| Non-HTTP protocols (UDP games, MQTT, VoIP) with lower latency | Global Accelerator |
| Regional failover in seconds without DNS TTL delays | Global Accelerator |
| DNS-based geographic or latency routing | Route 53 routing policies |
| Blue/green shift between Regions by percentage | Global Accelerator traffic dials (or Route 53 weights) |
Which service?
A multiplayer game
A gaming company runs UDP game servers behind NLBs in us-east-1, eu-west-1 and ap-northeast-1. Players complain of lag and of long outages when a Region fails, because DNS changes take minutes to reach clients. The operator creates an accelerator with a UDP listener on the game port range and an endpoint group per Region with the NLB as endpoint. Players now connect to two static IPs, enter the AWS network at the nearest edge, and are routed to the closest healthy Region; during a regional failure, traffic moves to another Region within seconds. Setting the traffic dial of a Region to 0% drains it for maintenance.
How does Global Accelerator control traffic per Region?
Show answer
With traffic dials; endpoint weights control traffic within a Region.
Exam Tips
Remember for the exam
- Global Accelerator provides two static anycast IPs and routes TCP/UDP over the AWS backbone.
- Traffic dials control traffic per Region; endpoint weights within a Region.
- Failover between Regions takes seconds and does not depend on DNS caching.
- Global Accelerator does not cache; CloudFront does.