Xây dựng các hệ thống AWS well-architected thường tuân theo các mẫu đã được thiết lập — kiến trúc web ba tầng, microservices, event-driven, serverless và các mẫu khác — vốn kết hợp các dịch vụ AWS để giải quyết các yêu cầu phổ biến như khả năng mở rộng, tách rời và độ kiên cường.
Kiến trúc web ba tầng (cổ điển)
The classic scalable web app:
PRESENTATION → CloudFront (CDN) + S3 (static frontend) or ALB → web tier
APPLICATION → EC2/containers (auto-scaled, multi-AZ) behind a load balancer
DATA → RDS (Multi-AZ) / DynamoDB; ElastiCache for caching
→ Each tier scales independently; multi-AZ for HA; the foundational web pattern.
Microservices
Decompose into independent services (each owning its data):
→ containers (ECS/EKS) or Lambda per service; API Gateway / service mesh
→ communicate via APIs and async messaging (SQS/SNS/EventBridge)
→ independent scaling, deployment, and teams
→ Flexibility and scalability at the cost of distributed-system complexity.
