Skip to Content

AWS Global Accelerator

Unicast vs anycast, how Global Accelerator speeds up any TCP or UDP application with two static anycast IPs and the AWS network, and how it differs from CloudFront.

The problem

An application is deployed in one Region (say, behind a public ALB in India) and has users all over the world. They reach it over the public internet, through many hops between networks, which adds latency and makes it unpredictable. The goal is to get their traffic onto the fast AWS network as soon as possible.

Unicast vs anycast

Unicast versus anycast: with unicast each server holds its own IP address and the client picks one; with anycast all servers share the same IP address and the client is routed to the nearest one Unicast versus anycast: with unicast each server holds its own IP address and the client picks one; with anycast all servers share the same IP address and the client is routed to the nearest one

One address in many places.
  • Unicast IP: one server holds one IP address. This is how most of the internet works.
  • Anycast IP: all servers hold the same IP address, and the network routes each client to the nearest one.

How Global Accelerator works

Global Accelerator: without it, a user in Australia reaches a public load balancer in India over many public internet hops; with it, the user connects to one of two anycast IP addresses at the nearest edge location, and traffic crosses the AWS network to the load balancer Global Accelerator: without it, a user in Australia reaches a public load balancer in India over many public internet hops; with it, the user connects to one of two anycast IP addresses at the nearest edge location, and traffic crosses the AWS network to the load balancer

Enter the AWS network at the nearest edge.

AWS Global Accelerator uses the AWS internal network to route users to an application:

  1. It gives the application two static anycast IP addresses (four with IPv6 dual-stack). Customers can also bring their own IP addresses.
  2. Those addresses are announced from every edge location, so each user's traffic enters AWS at the nearest edge.
  3. From the edge, traffic crosses the AWS global network to the application's endpoints.

Endpoints are Elastic IP addresses, EC2 instances, ALBs and NLBs, public or private, in one or more Regions.

Why use it

  • Consistent performance:
    • intelligent routing to the lowest-latency healthy endpoint, and fast regional failover;
    • no problems with client DNS caching, because the IP addresses never change;
    • traffic stays on the AWS network.
  • Health checks:
    • Global Accelerator health-checks the endpoints and moves traffic away from unhealthy ones, typically in under a minute (AWS says it reacts instantly);
    • great for disaster recovery and for making an application global.
  • Security:
    • only two external IP addresses to put on allow lists;
    • DDoS protection with AWS Shield.
  • Control: traffic dials set the share of traffic per Region (endpoint group), and endpoint weights within a Region. Useful for blue/green deployments without changing IP addresses.

A second type, the custom routing accelerator, maps each user to a specific EC2 instance and port; it's used for things like multiplayer game sessions.

Global Accelerator vs CloudFront

Both use the AWS global network and its edge locations around the world, and both integrate with AWS Shield for DDoS protection.

  • CloudFront:
    • improves performance for cacheable content (images, videos) and dynamic content (API acceleration, dynamic site delivery);
    • content is served at the edge, from cache.
  • Global Accelerator:
    • improves performance for a wide range of applications over TCP or UDP;
    • proxies packets at the edge to applications in one or more AWS Regions; nothing is cached;
    • good for non-HTTP uses: gaming (UDP), IoT (MQTT), Voice over IP;
    • good for HTTP uses that need static IP addresses;
    • good for HTTP uses that need deterministic, fast regional failover.

Real-world examples

  • A multiplayer game runs servers in three Regions. Players connect over UDP to two fixed IP addresses; Global Accelerator sends each to the nearest healthy Region.
  • A payment API must give banks two IP addresses to allow through their firewalls. Global Accelerator provides them, while the API runs behind ALBs in two Regions.
  • An IoT fleet has the endpoint IPs hard-coded in devices. Global Accelerator lets the company move the backend between Regions without updating a single device.

Exam tips

  • "Static IP addresses", "two IPs to allow-list", "IP addresses can't change" → Global Accelerator.
  • "UDP", "gaming", "VoIP", "IoT MQTT" → Global Accelerator (CloudFront is for HTTP).
  • "Fast regional failover, not affected by DNS caching" → Global Accelerator.
  • "Cache content at the edge" → CloudFront, not Global Accelerator.
  • "Shift a percentage of traffic between Regions without DNS changes" → traffic dials.

Common traps

  • "Global Accelerator caches content." It doesn't; it only carries traffic.
  • "Route 53 latency routing gives the same failover." DNS answers are cached by clients; Global Accelerator's IPs stay the same, so failover doesn't wait for caches.
  • "Global Accelerator only works with public endpoints." Its endpoints can be private, such as internal ALBs.

Check yourself

An accelerator costs $0.025 an hour plus data transfer fees, and the benefit only shows with users far away, so instead of a lab:

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt