Networking
D2 · Resilient
D3 · Performance
~1 phút đọcDNS, CDN & Edge: Route 53, CloudFront, Global Accelerator
Các service edge để giảm latency và phân phối traffic toàn cầu. So sánh CloudFront vs Global Accelerator.
route53
cloudfront
global-accelerator
waf
Sơ đồ tổng quan
Đang tải sơ đồ…
Route 53 — routing policies
- Simple: 1 record, 1 hoặc nhiều IP (random).
- Weighted: chia traffic theo tỷ lệ (A/B testing, canary).
- Latency-based: route tới region có latency thấp nhất với user.
- Failover: active-passive với health check.
- Geolocation: theo quốc gia/châu lục của user.
- Geoproximity (Traffic Flow): theo khoảng cách địa lý, có bias.
- Multi-value: tới 8 healthy record ngẫu nhiên (DNS-based HA, không thay được LB).
- Alias record: trỏ tới AWS resource (ELB/CF/S3 website/API GW), miễn phí, hoạt động ở apex domain.
CloudFront
- Layer 7 CDN, tối ưu HTTP/S content (static + dynamic).
- Origin: S3, ALB, custom HTTP origin. Origin Access Control (OAC) thay OAI cho S3.
- Cache policies & origin request policies thay `forwarded values` cũ.
- Edge functions: CloudFront Functions (JS, cực nhẹ, chạy ở Viewer) vs Lambda@Edge (mạnh hơn, Node/Python, chạy Origin/Viewer).
- Signed URL / Signed Cookie để bảo vệ nội dung.
- Tích hợp AWS WAF + AWS Shield Standard (free) / Advanced (trả phí).
Global Accelerator
- Layer 4 TCP/UDP, dùng 2 anycast static IP ở edge → route user qua AWS backbone.
- Latency & jitter ổn định hơn Internet.
- Fast failover giữa regions (giây).
- Use case: gaming, VoIP, financial trading, IoT, non-HTTP.
Info
HTTP/HTTPS content + caching → CloudFront. TCP/UDP non-HTTP hoặc cần static anycast IP → Global Accelerator.
Nội dung liên quan
Quiz liên quan
Flashcards liên quan