Supplement · AWS
Compute, containers và serverless
Chọn runtime theo control cần giữ, unit scaling, startup latency, workload duration, isolation và operational burden.
Decision surface
- EC2 cho control OS/network/device cao; Auto Scaling Group cần immutable image, health check, warmup, lifecycle hook và capacity diversification.
- ECS giảm control-plane burden; EKS phù hợp khi Kubernetes API/ecosystem là requirement thực. Fargate bỏ quản node nhưng đổi cost, limits và observability path.
- Lambda scale theo concurrent executions; timeout, memory/CPU coupling, cold start, event retry và downstream capacity phải nằm trong design.
- ALB route L7; NLB tối ưu L4/static IP/high throughput. Target health không đồng nghĩa business readiness.
Deployment và overload
Rolling, blue/green và canary khác nhau về capacity, rollback và state compatibility. Queue tách producer/consumer nhưng cần visibility timeout, DLQ, idempotency và backlog age SLO. Scaling signal phải gần bottleneck: queue depth per worker, concurrency hoặc request latency thay vì chỉ CPU.
Rule: serverless/container không xóa capacity planning; nó chuyển capacity sang concurrency, quota và downstream connection budget.