Compute
AWS Local Zones
AWS mini DC gần thành phố lớn, low latency cho city users
Tổng quan
AWS Local Zones là extension của AWS Region, đặt gần các thành phố lớn để cung cấp low latency cho end users tại những khu vực đó.
Tại sao gọi là "Local" Zone? (không phải chỉ là "Zone")
[!NOTE] Câu hỏi hay: Tại sao không gọi là Availability Zone mà lại gọi là Local Zone?
Availability Zone vs Local Zone
Bảng so sánh AZ vs Local Zone
| Availability Zone (AZ) | Local Zone | |
|---|---|---|
| Vị trí | TRONG Region (cùng metro area) | XA Region (thành phố khác) |
| Khoảng cách | < 100km đến nhau | 100 - 2000+ km đến Region |
| Enabled mặc định? | ✅ Yes | ❌ No (phải opt-in) |
| Services | FULL (tất cả AWS services) | LIMITED (EC2, EBS, VPC...) |
| Mục đích | High Availability trong Region | Low latency cho users xa Region |
| Naming | us-west-2a, us-west-2b | us-west-2-lax-1a (có tên city) |
Tại sao gọi là "Local"?
Tóm lại:
- AZ = Zone trong Region → cho High Availability
- Local Zone = Zone ngoài Region, gần cities → cho Low Latency tới users
Vị trí vật lý - Hiểu rõ Local Zones
[!NOTE] Local Zones = AWS tự xây/thuê data center nhỏ đặt gần thành phố lớn, do AWS quản lý hoàn toàn.
So sánh: Local Zones vs Outposts vs Wavelength
Bảng so sánh chi tiết
| Local Zones | Outposts | Wavelength | |
|---|---|---|---|
| DC ở đâu? | AWS's mini DC gần cities | Your company's DC | Telecom's DC |
| Ai sở hữu DC? | 🏛️ AWS | 🏭 Bạn | 🏢 Nhà mạng |
| Ai quản lý? | AWS 100% | AWS (hardware) | AWS |
| Target users | City users (fixed location) | On-prem users | 5G mobile users |
| Latency | < 10ms cho city | Depends on your network | < 10ms cho 5G |
| Services | EC2, EBS, VPC, RDS... | Full AWS | EC2, EBS, ECS, EKS |
Tại sao cần Local Zones?
Vấn đề: Users xa AWS Region
Use Cases
| Use Case | Mô tả |
|---|---|
| Media & Entertainment | Video editing, rendering, post-production tại Hollywood |
| Real-time Gaming | Game servers gần players |
| Live Streaming | Low-latency broadcasts |
| Machine Learning Inference | Real-time AI predictions |
| Virtual Workstations | Remote desktops, CAD applications |
| Ad Tech | Real-time bidding platforms |
Ví dụ thực tế: Video Production
AWS Services trong Local Zones
Services được hỗ trợ
| Category | Services |
|---|---|
| Compute | EC2, ECS, EKS |
| Storage | EBS |
| Database | RDS (một số engines) |
| Networking | VPC, Application Load Balancer, Direct Connect |
Services KHÔNG có trong Local Zones
| Service | Giải pháp |
|---|---|
| S3 | Dùng S3 từ Parent Region |
| Lambda | Dùng Lambda từ Parent Region |
| DynamoDB | Dùng từ Parent Region |
| Most managed services | Kết nối về Parent Region |
Network Architecture
Danh sách Local Zones
Một số Local Zones phổ biến
| Region | Local Zones |
|---|---|
| us-west-2 (Oregon) | Los Angeles, Las Vegas, Phoenix, Denver... |
| us-east-1 (Virginia) | Boston, Miami, Atlanta, Chicago, Dallas... |
| eu-west-2 (London) | Hamburg, Copenhagen, Helsinki... |
| ap-southeast-1 (Singapore) | Bangkok, Delhi... |
[!TIP] Chạy
aws ec2 describe-availability-zones --filters "Name=zone-type,Values=local-zone"để xem tất cả Local Zones.
Hands-on: Deploy App to Local Zone
Step 1: Opt-in to Local Zone
Step 2: Create Subnet in Local Zone
Step 3: Launch EC2 in Local Zone
So sánh: Tạo resource ở đâu?
Pricing
Chi phí
| Component | Pricing |
|---|---|
| EC2 Instances | ~10-20% cao hơn Region (premium for proximity) |
| EBS Volumes | Standard EBS pricing |
| Data Transfer | Local Zone → Region: FREE (intra-VPC) |
| Local Zone → Internet: Standard rates |
[!IMPORTANT] Local Zones có giá cao hơn Region vì bạn đang trả thêm cho physical proximity với end users.
Decision Tree: Chọn giải pháp nào?
Exam Tips (SAA-C03)
[!IMPORTANT] Điểm cần nhớ cho kỳ thi:
- Local Zones = AWS mini DC gần thành phố lớn
- Extension của Region - cùng VPC, khác subnet
- Phải opt-in - không enabled by default
- Dùng Internet Gateway (không phải Carrier Gateway như Wavelength)
- Giá cao hơn Region (~10-20% premium)
- Limited services: EC2, EBS, VPC, ELB, RDS (một số)
Câu hỏi thường gặp trong exam
| Scenario | Answer |
|---|---|
| Low latency cho users tại thành phố cụ thể | AWS Local Zones |
| Real-time gaming cho desktop/console players | AWS Local Zones |
| Video production studio cần low latency | AWS Local Zones |
| Virtual desktops cho remote workers | AWS Local Zones |
| Ultra-low latency cho 5G mobile | AWS Wavelength |
| Hybrid cloud với data residency | AWS Outposts |