☁️ Container & Serverless Services
ECS, EKS, Fargate, Elastic Beanstalk, AWS Batch
🐳 Amazon ECS & Fargate
ECS (Elastic Container Service) — Docker konteynerlarni boshqarish. Launch Types: EC2 (siz node boshqarasiz) va Fargate (serverless, faqat container spec yozasiz). ECS Task Definition — container konfiguratsiya blueprint. ECS Service — kerakli task soni ushlab turadi.
⎈ Amazon EKS (Elastic Kubernetes Service)
AWS tomonidan managed Kubernetes. Control plane AWS boshqaradi. Worker nodes: EC2 (managed node groups) yoki Fargate. Fargate profile — EKS da serverless podlar. IAM Roles for Service Accounts (IRSA) — pod darajasida IAM permission. eksctl, kubectl — asosiy CLI toollar.
🌱 AWS Elastic Beanstalk
PaaS xizmati — kod deploy qiling, infratuzilma (EC2, ELB, Auto Scaling, RDS) AWS boshqaradi. Supported platforms: Java, .NET, PHP, Node.js, Python, Ruby, Go, Docker. Developer uchun zero DevOps — lekin EC2 ga SSH kirish imkoni saqlanadi.
📦 AWS Batch
AWS Batch — managed batch computing, queue asosida job scheduling. EC2 va Spot Instance orqali. Genomics, ML training, ETL, rendering kabi uzun (soatlab) batch joblar uchun. Lambda max 15 daqiqa, Batch — cheksiz. Job Queue → Compute Environment → Job Definition.
📊 Container/Compute Xizmatlar Taqqoslash
| Xizmat | Abstraktsiya | Boshqaruv | Asosiy Use Case |
|---|---|---|---|
| EC2 | VM | To'liq o'zingiz | Custom OS, full control |
| Elastic Beanstalk | Application (PaaS) | AWS infra, siz kod | Tez deploy, minimal ops |
| ECS + EC2 | Container | Siz node boshqarasiz | Container + node control |
| ECS + Fargate | Container (serverless) | AWS node boshqaradi | Serverless container |
| EKS | Kubernetes | AWS control plane | K8s workloads, microservices |
| Lambda | Function (serverless) | AWS hammasi | Event-driven, ≤15 min |
| AWS Batch | Job (managed) | AWS queue + compute | Uzun batch jobs, Spot |
💡 Asosiy nuqtalar
- ECS EC2: siz node boshqarasiz. ECS Fargate: serverless container
- EKS: managed Kubernetes control plane, worker = EC2 yoki Fargate
- Elastic Beanstalk: PaaS, developer kodni deploy qiladi
- AWS Batch: uzun batch job uchun, Spot Instance bilan arzon
- Fargate = serverless launch type (ECS yoki EKS da)
🎯 Imtihon maslahatlari
- "Serverless container" → ECS Fargate yoki EKS Fargate — EC2 boshqarmaysiz
- "Managed Kubernetes" → EKS. "Managed container (not K8s)" → ECS
- Elastic Beanstalk: developer infrani boshqarmaslikni xohlaydi, lekin EC2 ga kirish imkoni bor
- AWS Batch vs Lambda: Batch = uzun batch jobs (soatlar), Lambda = qisqa event-driven (max 15 min)
- ECS Task = bir yoki bir nechta container birga run qilinadi (pod analog)
⚠️ Ko'p adashadigan
- ECS va EKS bir xil deb o'ylash: ECS=AWS-native orchestration, EKS=Kubernetes
- Fargate alohida xizmat deb o'ylash: Fargate = ECS yoki EKS uchun serverless launch type
- Elastic Beanstalk da EC2 ga kirish mumkin emas deb o'ylash — SSH orqali kirish mumkin
🧠 Eslab qolish: "ECS=Elastic Container Service, EKS=Elastic Kubernetes Service" — ikkalasi container, lekin EKS = Kubernetes. "Beanstalk = fasol: o'sadi o'zi, developer faqat urug'ni ekadi (kod yozadi)"
Container & Serverless Services bo'yicha o'zingizni sinab ko'ring
Bepul interaktiv quiz, mock imtihon va to'liq darslar — CertMaster platformasida.
Bepul boshlash →