Other Compute Section Flashcards
1
Q
ECS
A
- Launch Docker containers on AWS
- You must provision & maintain the infrastructure (the EC2 instances)
- AWS takes care of starting / stopping containers
- Has integrations with the Application Load Balancer
2
Q
Fargate
A
- Launch Docker containers on AWS
- You do not provision the infrastructure (no EC2 instances to manage)
- Serverless offering
- AWS just runs containers for you based on the CPU / RAM you need
3
Q
ECR
A
- Private Docker Registry on AWS
* This is where you store your Docker images so they can be run by ECS or Fargate
4
Q
EC2 VS Lambda
A
EC2
- Virtual Servers in the Cloud
- Limited by RAM and CPU
- Continuously running
- Scaling means intervention to add / remove servers
Amazon Lambda • Virtual functions – no servers to manage! • Limited by time - short executions • Run on-demand • Scaling is automated!
5
Q
Lambda Benefits
A
Easy Pricing:
• Pay per request and compute time
• Free tier of 1,000,000 AWS Lambda requests and 400,000 GBs of compute time
- Integrated with the whole AWS suite of services
- Event-Driven: functions get invoked by AWS when needed
- Integrated with many programming languages
- Easy monitoring through AWS CloudWatch
- Easy to get more resources per functions (up to 10GB of RAM!)
- Increasing RAM will also improve CPU and network
6
Q
Lambda Container Image
A
- The container image must implement the Lambda Runtime API
* ECS / Fargate is preferred for running arbitrary Docker images
7
Q
Amazon API Gateway
A
• Fully managed service for developers to easily create, publish, maintain,
monitor, and secure APIs
• Serverless and scalable
• Supports RESTful APIs and WebSocket APIs
• Support for security, user authentication, API throttling, API keys, monitoring
8
Q
AWS Batch
A
- Fully managed batch processing at any scale (job with a start and an end)
- Batch will dynamically launch EC2 instances or Spot Instances
- AWS Batch provisions the right amount of compute / memory
- You submit or schedule batch jobs and AWS Batch does the rest!
- Batch jobs are defined as Docker images and run on ECS
9
Q
AWS Lightsail
A
- Virtual servers, storage, databases, and networking
- Low & predictable pricing
- Great for people with little cloud experience!