AWS Global Accelerator

Two fixed IP addresses that work everywhere on earth, and a shortcut onto the AWS backbone from whichever edge is nearest the client. It moves packets faster and fails over without DNS — it does not cache, and it is not a CDN.

Hai địa chỉ IP cố định dùng được ở khắp nơi trên thế giới, và một lối tắt lên AWS backbone từ edge gần client nhất. Nó đưa packet đi nhanh hơn và failover không cần DNS — nó không cache, và không phải CDN.

What "anycast" actually means"Anycast" thật ra nghĩa là gì

A normal (unicast) IP is advertised from one place, so every client on earth crosses the internet to reach it. An anycast IP is advertised by AWS from many edge locations at once; internet routing naturally delivers each client to the nearest one. From there the traffic is on AWS's own network. IP thường (unicast) được quảng bá từ một nơi, nên mọi client trên đời phải băng qua internet để tới. IP anycast được AWS quảng bá từ nhiều edge location cùng lúc; định tuyến internet tự nhiên đưa mỗi client tới cái gần nhất. Từ đó trở đi traffic đã ở trên mạng riêng của AWS.

How a Global Accelerator anycast address works. The same two static IP addresses are advertised from many AWS edge locations. A client in Vietnam, a client in Germany and a client in Brazil all connect to the same IP address, but each is routed to its nearest edge — Singapore, Frankfurt and São Paulo respectively. From the edge the traffic travels over the AWS global backbone to the regional endpoint groups, which contain load balancers or EC2 instances. If the Singapore endpoint group becomes unhealthy, new connections from the Vietnamese client are sent over the backbone to Tokyo instead, with no change to the IP address the client uses and no wait for DNS to expire. clients Vietnam Germany Brazil the same 2 IPs 75.2.10.20 99.83.20.30 advertised by BGP from every AWS edge location give these to partners to allow-list edge · Singapore edge · Frankfurt edge · São Paulo short hop over the public internet AWS global backbone endpoint group · ap-southeast-1 · ALB endpoint group · eu-central-1 · ALB traffic dial % · endpoint weights endpoint group unhealthy → new connections go to the next healthy Region over the backbone · the client keeps using the same IP already-established TCP sessions are NOT migrated — the client has to reconnect a single-Region backend gains a better path, but gains no failover — there is nowhere to fail over to

The value is two-sided: a stable address for partners' allow-lists, and a short public-internet leg before the traffic joins AWS's own network. Neither has anything to do with caching.

Giá trị có hai mặt: một địa chỉ ổn định cho allow-list của đối tác, và một đoạn internet công cộng ngắn trước khi traffic lên mạng riêng của AWS. Cả hai đều không liên quan gì tới caching.

Global Accelerator vs CloudFrontGlobal Accelerator vs CloudFront

Both sit on the same edge network, so questions pair them constantly. Split them by layer and by cache: CloudFront understands HTTP and stores copies; Global Accelerator moves bytes and stores nothing. Cả hai nằm trên cùng mạng edge, nên đề liên tục ghép chúng lại. Tách bằng layer và cache: CloudFront hiểu HTTP và giữ bản sao; Global Accelerator chuyển byte và không giữ gì.

Global Accelerator CloudFront
Layer / protocolLayer / giao thức L4 · TCP, UDP L7 · HTTP(S)
Caches contentCache nội dung ✗ ✓
Static IPs to allow-listIP tĩnh để allow-list ✓ 2 anycast IPs2 IP anycast ✗ (a large, changing edge range)✗ (một dải edge lớn và hay đổi)
TargetsĐích ALB · NLB · EC2 · EIP S3 · ALB · any HTTP originbất kỳ HTTP origin · Lambda URL
Failover unitĐơn vị failover endpoint health — all traffic, all methodssức khoẻ endpoint — mọi traffic, mọi method per request via origin group — GET/HEAD/OPTIONS onlytheo từng request qua origin group — chỉ GET/HEAD/OPTIONS
Reach for itDùng khi gaming · VoIP · real-time audio · write-heavy APIs · partner allow-lists · multi-Region failover without DNSgame · VoIP · audio real-time · API nhiều ghi · allow-list đối tác · failover đa Region không qua DNS websites · static assets · video · read-heavy APIs · WAF at the edgewebsite · asset tĩnh · video · API nhiều đọc · WAF ở edge
Three combinations that don't existBa tổ hợp không tồn tại 1. A CloudFront distribution as a Global Accelerator endpoint. 2. "Attach an accelerator to the CloudFront distribution." 3. Global Accelerator in front of API Gateway. All three appear as distractors; all three are invalid. CloudFront is already a global entry point — putting GA in front of it is meaningless. 1. Một CloudFront distribution làm endpoint của Global Accelerator. 2. "Gắn accelerator vào CloudFront distribution." 3. Global Accelerator đứng trước API Gateway. Cả ba đều xuất hiện làm bẫy; cả ba đều không hợp lệ. CloudFront vốn đã là điểm vào toàn cầu — đặt GA trước nó là vô nghĩa.
Also not the answer for outboundCũng không phải đáp án cho chiều ra Global Accelerator accelerates traffic into your endpoints. When EC2 in a private subnet calls a third-party API, the return path is NAT gateway → internet and the partner sees the NAT gateway's Elastic IP. GA is never involved in that direction. Global Accelerator tăng tốc traffic đi vào endpoint của bạn. Khi EC2 trong private subnet gọi API bên thứ ba, đường đi là NAT gateway → internet và đối tác thấy Elastic IP của NAT gateway. GA không dính gì tới chiều đó.

Three ways to fail over between RegionsBa cách failover giữa các Region

Route 53 failover CloudFront origin grouporigin group Global Accelerator
MechanismCơ chế returns a different DNS answertrả về câu trả lời DNS khác retries the request on origin 2thử lại request trên origin 2 routes new connections elsewheređưa kết nối mới sang chỗ khác
Speed limited byTốc độ bị giới hạn bởi DNS TTL + resolver cachingDNS TTL + cache của resolver the failing request itselfchính request bị lỗi health-check interval (seconds)chu kỳ health check (vài giây)
Covers writes (POST/PUT)Phủ được ghi (POST/PUT) ✓ ✗ — read methods only✗ — chỉ method đọc ✓
Non-HTTP protocolsGiao thức không phải HTTP ✓ ✗ ✓
CloudFront origin failover is per-request, not per-RegionOrigin failover của CloudFront theo request, không theo Region CloudFront keeps trying the primary on the next request — it doesn't mark a Region dead and drain it. And it deliberately won't retry POST/PUT/PATCH/DELETE, because replaying a write could duplicate a payment. For a write-heavy app that needs regional failover, that's the moment to reach for Global Accelerator or Route 53 in front of the load balancers. CloudFront vẫn thử primary ở request kế tiếp — nó không đánh dấu một Region là chết rồi rút traffic. Và nó cố tình không retry POST/PUT/PATCH/DELETE, vì phát lại một lệnh ghi có thể tạo giao dịch trùng. Với app nhiều ghi cần failover cấp Region, đó là lúc lấy Global Accelerator hoặc Route 53 đặt trước các load balancer.

Exam reflexesPhản xạ thi

  • "Static IP addresses" + "TCP/UDP" + "multi-Region" → Global Accelerator. Two of the three is usually enough."Địa chỉ IP tĩnh" + "TCP/UDP" + "đa Region" → Global Accelerator. Trúng hai trên ba thường là đủ.
  • "Static IP" but single Region, one service, partner allow-list → an NLB with an Elastic IP per AZ is the cheaper right answer, not GA."IP tĩnh" nhưng một Region, một service, allow-list đối tác → NLB với một Elastic IP mỗi AZ mới là đáp án đúng và rẻ hơn, không phải GA.
  • "Improve latency for users outside the Region" for an API Gateway → edge-optimized endpoint (or your own CloudFront in front). For S3 uploads → Transfer Acceleration. GA is wrong for both."Giảm latency cho user ngoài Region" với API Gateway → edge-optimized endpoint (hoặc tự đặt CloudFront phía trước). Với upload S3 → Transfer Acceleration. GA sai cho cả hai.
  • Real-time audio / WebRTC over UDP → GA in front of an NLB with a UDP listener or EC2 media servers; ALB can't take UDP.Audio real-time / WebRTC qua UDP → GA đứng trước NLB có UDP listener hoặc EC2 media server; ALB không nhận UDP.
  • GA improves the network path, not the application. If p95 latency is dominated by the backend's own processing, GA buys little — measure jitter and packet loss, not just RTT.GA cải thiện đường mạng, không cải thiện ứng dụng. Nếu p95 latency chủ yếu do backend tự xử lý, GA không mua được nhiều — hãy đo jitter và packet loss, đừng chỉ đo RTT.