Difficulty: Advanced
What is AWS Global Accelerator, how does it improve performance and availability, and how is it different from CloudFront?
AWS Global Accelerator gives your application static anycast IP addresses that route users onto the AWS global network at the nearest edge location, then carries their TCP or UDP traffic over AWS's backbone to healthy endpoints in one or more Regions. This reduces latency and jitter compared with the public internet and enables fast, automatic Regional failover without waiting for DNS changes to propagate.
Two knobs control traffic:
The public internet path from a user to a far-away Region may cross many networks with congestion and packet loss. Global Accelerator terminates the connection at the nearby edge and moves the rest over AWS's private backbone, which is usually more consistent. Gaming, VoIP, IoT and real-time trading benefit most because they care about jitter, not just averages.
| CloudFront | Global Accelerator | |
|---|---|---|
| Layer | HTTP/HTTPS (Layer 7) | TCP and UDP (Layer 4) |
| Caching | Yes, content cached at edge | No caching, every request goes to origin |
| Entry point | DNS name, IPs change | Two static anycast IPs |
| Typical use | Websites, APIs, video, static assets | Gaming, VoIP, IoT, non-HTTP protocols, IP allow-listing |
| Failover | Origin groups for failover | Health-based Regional failover |
Both use AWS edge locations, so the question is really "do I need HTTP caching and edge logic, or a fast static-IP entry point for any TCP/UDP traffic?"
Many enterprises and banks only allow outbound traffic to allow-listed IPs. An ALB's IPs change, but Global Accelerator's two IPs stay fixed for the life of the accelerator. Clients also avoid DNS caching problems: during a Regional failure, Global Accelerator reroutes behind the same IPs, while a DNS-based failover waits for TTLs and client caches.
# Global Accelerator's API is served from us-west-2
aws globalaccelerator create-accelerator --name game-api \
--ip-address-type IPV4 --region us-west-2
aws globalaccelerator create-listener --region us-west-2 \
--accelerator-arn <accelerator-arn> \
--protocol TCP --port-ranges FromPort=443,ToPort=443
# Mumbai gets all traffic for now; Singapore is the standby
aws globalaccelerator create-endpoint-group --region us-west-2 \
--listener-arn <listener-arn> --endpoint-group-region ap-south-1 \
--traffic-dial-percentage 100 \
--endpoint-configurations EndpointId=<alb-arn-mumbai>,Weight=100
aws globalaccelerator create-endpoint-group --region us-west-2 \
--listener-arn <listener-arn> --endpoint-group-region ap-southeast-1 \
--traffic-dial-percentage 0 \
--endpoint-configurations EndpointId=<alb-arn-singapore>,Weight=100
With a 0% dial Singapore receives no traffic normally, but if Mumbai's endpoints fail health checks, Global Accelerator fails over to the remaining healthy group.
Anycast IP, AWS Global Network, Endpoint Groups, Traffic Dials, Regional Failover, CloudFront vs Global Accelerator