- Tác giả

- Name
- Nguyễn Đức Xinh
- Ngày xuất bản
- Ngày xuất bản
Tổng Hợp Các Dịch Vụ AWS Computing
Giới Thiệu
AWS cung cấp một hệ sinh thái Compute Services cực kỳ đa dạng, từ EC2 truyền thống, serverless, container, đến edge computing. Việc chọn đúng dịch vụ phụ thuộc vào:
- Loại workload
- Yêu cầu latency
- Quy mô và tính tự động hóa
- Chi phí tối ưu
1. Nhóm Compute Truyền Thống (VM / Server)
Các dịch vụ này cung cấp máy chủ ảo EC2 hoặc physical-like, cho phép full control hệ điều hành và cấu hình.
1.1 Amazon EC2 (Elastic Compute Cloud)
Dùng khi: cần server truyền thống, full control OS, custom software
Tính năng:
- Nhiều instance type: general purpose, compute optimized, memory optimized, GPU…
- Auto Scaling, Elastic Load Balancing
- EC2 Spot, Reserved, On-demand
Use case: Web server, Application server, Database, HPC, Gaming server
Ưu điểm: Flexible, scalable, đầy đủ control
Hạn chế: Quản lý patch, OS, scaling thủ công nếu không dùng autoscaling
1.2 AWS Outposts
Dùng khi: cần compute on-premises nhưng muốn AWS managed
Tính năng: full AWS APIs, EC2/EBS tại site
Use case: Low-latency on-prem apps, hybrid cloud, compliance, Security
Ưu điểm: AWS stack on-prem, quản lý dễ
Hạn chế: Chi phí cao, triển khai phức tạp
Note: Đặt phần cứng AWS tại data center của khách hàng, Khách hàng quản lý cơ sở hạ tầng vật lý
1.3 AWS Local Zones
Dùng khi: compute gần user để giảm latency(<10ms)
Use case: Gaming, AR/VR, media streaming, IoT
Ưu điểm: Low latency, tích hợp AWS region
Hạn chế: Chỉ có mặt ở vài thành phố
Note: Đặt cơ sở hạ tầng AWS tại các thành phố lớn, gần người dùng cuối, AWS quản lý hoàn toàn
1.4 AWS Wavelength
Dùng khi: ultra-low latency (<1-5ms) cho mobile 5G
Use case: Cloud gaming, AR/VR, autonomous vehicles, real-time analytics
Ưu điểm: Ultra-low latency, AWS full API
Hạn chế: Chỉ có tại 5G nhà mạng hỗ trợ, chi phí cao
Note: Đặt cơ sở hạ tầng AWS bên trong mạng 5G của nhà mạng (Verizon, Vodafone, etc.), Không cần đi qua Internet public
Tóm tắt:
Outposts = "AWS trong nhà bạn"
Local Zones = "AWS gần thành phố của bạn"
Wavelength = "AWS trong mạng 5G của nhà mạng".
2. Nhóm Container & Orchestration(Đóng gói và Điều phối)
Cho phép deploy app bằng container, quản lý dễ, tự động scaling.
2.1 Amazon ECS (Elastic Container Service)
Dùng khi: muốn container orchestration managed
Use case: Web apps, microservices, batch processing
Ưu điểm: Fully managed, tích hợp IAM, CloudWatch
Hạn chế: Chỉ AWS native, không portable ra cloud khác
2.2 Amazon EKS (Elastic Kubernetes Service)
Dùng khi: muốn Kubernetes fully managed
Use case: Enterprise apps, microservices, hybrid multi-cloud
Ưu điểm: Quản lý K8s dễ, autoscaling, nodegroup integration
Hạn chế: Chi phí cao, learning curve K8s
2.3 AWS Fargate
Dùng khi: muốn chạy container serverless
Use case: Microservices, batch jobs, API backend
Ưu điểm: Không quản lý server, auto scaling, trả tiền theo sử dụng
Hạn chế: Limited custom OS, performance constrained
3. Nhóm Serverless và Platform as a Service (PaaS)
Không cần quản lý server, scale tự động, tính phí theo sử dụng.
3.1 AWS Lambda
Dùng khi: chạy code event-driven, microservices nhỏ
Use case: API backend, data processing, IoT triggers
Ưu điểm: No server management, auto scaling, trả phí theo request
Hạn chế: Max runtime 15 phút, stateless
3.2 AWS Batch
Dùng khi: xử lý batch jobs, high-performance computing
Use case: Data processing, ML training, genomics, simulation
Ưu điểm: Auto scaling, scheduling, spot integration
Hạn chế: Chạy batch mới phù hợp, không dùng cho real-time
3.3 AWS Elastic Beanstalk
Dùng khi: deploy app nhanh mà không quản lý server
Use case: Web apps, API backend
Ưu điểm: Deploy nhanh, auto scaling, monitoring tích hợp
Hạn chế: Customization hạn chế, less control than EC2/ECS
4. Nhóm Lightsail
Dùng khi: deploy đơn giản, predictable workloads
Use case: Small web apps, blogs, dev/test environment
Ưu điểm: Fixed monthly cost, simple UI, preconfigured OS
Hạn chế: Limited scaling, không mạnh bằng EC2
5. Nhóm Edge & Special Compute
AWS Snow Family: Snowcone, Snowball Edge (Compute + Storage tại edge)
Use case: Offline data collection, edge AI inference, IoT
Ưu điểm: Offline processing, ruggedized, edge compute
Hạn chế: Không dành cho workloads liên tục, cần vận chuyển thiết bị
6. Bảng So Sánh Tổng Quan Các Dịch Vụ AWS Compute
| Dịch vụ | Loại | Use case | Tính quản lý | Latency | Chi phí | Ưu điểm | Hạn chế |
|---|---|---|---|---|---|---|---|
| EC2 | VM | General purpose | Full control | Region | On-demand / Reserved / Spot | Flexible, scalable | Quản lý OS, patch |
| Outposts | VM on-prem | Hybrid cloud | Managed | On-prem | Cao | AWS API on-prem | Triển khai phức tạp |
| Local Zones | VM Edge | Low latency | Managed | <20ms | Medium | Gần user | Limited location |
| Wavelength | VM 5G Edge | Ultra-low latency | Managed | <10ms | Cao | Ultra-low latency | Limited to 5G network |
| ECS | Container | Microservices | Managed | Region | Pay per instance | Easy orchestration | AWS only |
| EKS | Container | K8s microservices | Managed | Region | Pay per cluster + EC2 | Full K8s | Chi phí cao, learning curve |
| Fargate | Serverless container | Microservices | Managed | Region | Pay per use | No server management | Limited OS, performance |
| Lambda | Serverless | Event-driven | Managed | Region | Pay per request | Auto scaling | Max 15 mins runtime, stateless |
| Batch | Serverless | HPC, batch jobs | Managed | Region | Pay per use | Auto scaling, spot | Batch only |
| Elastic Beanstalk | PaaS | Web apps | Managed | Region | Pay EC2/EBS | Deploy nhanh | Customization hạn chế |
| Lightsail | PaaS simplified | Small apps | Managed | Region | Fixed monthly | Simple, predictable | Limited scaling |
| Snow Family | Edge compute | Offline, edge AI | Managed | Edge | One-time/device | Offline processing | Không liên tục |
7. Lời Khuyên Khi Chọn AWS Compute
- Cần full control → EC2 / Outposts / Local Zones / Wavelength
- Container orchestration → ECS / EKS / Fargate
- Serverless, event-driven → Lambda / Batch
- Simple web app → Elastic Beanstalk / Lightsail
- Edge / Offline → Snow Family / Wavelength
8. Kết Luận
AWS cung cấp đa dạng giải pháp compute, từ server truyền thống, container, serverless, đến edge computing.
Hiểu rõ use case, latency, scale, cost, và management level sẽ giúp bạn chọn dịch vụ phù hợp:
- Serverless → tiết kiệm quản lý
- Containers → linh hoạt + dễ scale
- Edge computing → ultra-low latency, mobile/IoT/AR/VR
- VM truyền thống → full control, legacy apps
