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.
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 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 | ✓ | ✗ | ✓ |
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.