Global Accelerator

Difficulty: Advanced

Question

What is AWS Global Accelerator, how does it improve performance and availability, and how is it different from CloudFront?

Answer

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.

How it works

  1. You create an accelerator and get two static IPv4 addresses (dual-stack accelerators also get IPv6). You can bring your own IPs too.
  2. These IPs are anycast from many AWS edge locations, so a user in Chennai and a user in Frankfurt connect to their nearest edge.
  3. Listeners define ports and protocols (TCP or UDP).
  4. Endpoint groups map to Regions, each containing endpoints: ALBs, NLBs, EC2 instances or Elastic IPs.
  5. Global Accelerator health-checks endpoints and sends traffic only to healthy ones, preferring the closest Region.

Two knobs control traffic:

  • Traffic dial (per endpoint group, 0 to 100%): shift traffic away from a Region for maintenance or blue/green across Regions.
  • Endpoint weights (within a group): split traffic among endpoints.

Why performance improves

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.

Global Accelerator vs CloudFront

CloudFrontGlobal Accelerator
LayerHTTP/HTTPS (Layer 7)TCP and UDP (Layer 4)
CachingYes, content cached at edgeNo caching, every request goes to origin
Entry pointDNS name, IPs changeTwo static anycast IPs
Typical useWebsites, APIs, video, static assetsGaming, VoIP, IoT, non-HTTP protocols, IP allow-listing
FailoverOrigin groups for failoverHealth-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?"

Why static IPs matter

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.

Other details

  • Custom routing accelerators map users to a specific EC2 instance and port, used for multiplayer game sessions.
  • Client IP preservation is supported for ALB and EC2 endpoints, so your app sees the real user IP.
  • Pricing is a fixed hourly fee per accelerator plus a data transfer premium, so it is not worth adding for a single-Region CRUD app with users in one city.
A request through Global Accelerator. Users hit a nearby edge, then ride the AWS backbone to the closest healthy Region.
  1. User: Connects to one of two static anycast IPs.
  2. Nearest AWS edge location: Connection enters the AWS network early.
  3. AWS global backbone: Traffic avoids congested public internet paths.
  4. Endpoint group in a Region: Traffic dial and health checks choose the Region.
  5. ALB, NLB or EC2: Healthy endpoint serves the request.

Code examples

Create an accelerator with two Regions

# 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.

Key points

  • Provides two static anycast IPs that front endpoints in one or more Regions.
  • Works at Layer 4 for TCP and UDP; it does not cache content.
  • Traffic dials shift traffic between Regions; weights split it within a Region.
  • Health-based failover happens behind the same IPs, without DNS propagation delays.
  • Use CloudFront for cacheable HTTP content, Global Accelerator for static IPs and non-HTTP or latency-sensitive traffic.

Common follow-up questions

  • When would you use both CloudFront and Global Accelerator?
  • How does Global Accelerator failover compare with Route 53 failover routing?
  • How do traffic dials help with multi-Region deployments?
  • What is a custom routing accelerator used for?

Interview tips

  • The CloudFront comparison is almost guaranteed; answer it with layer, caching and static IPs.
  • Mention DNS caching as the reason Global Accelerator fails over faster than DNS-based approaches.
  • Give a concrete use case like multiplayer gaming or IP allow-listing for enterprise clients.

Concepts covered

Anycast IP, AWS Global Network, Endpoint Groups, Traffic Dials, Regional Failover, CloudFront vs Global Accelerator

More AWS & Cloud Fundamentals questions