ECS
Elastic Container Service
- Launch Docker containers on AWS
- You MUST provision & maintain the infrastructure (the EC2 instance)
- AWS takes care
... [Show More] of starting/stopping containers
- Has integrations w/the app load balancer
Fargate
- Launch Docker containers on AWS
-DOES NOT need to provision EC2
-SERVERLESS Offering
- AWS just runs containers for you based on the CPU/RAM you need
01:16
01:20
ECR
Elastic Container Registry
- Private docker registry on AWS
- this is where you store your docker images so they can be run by ECS or Fargate
What's serverless?
- new paradigm in which the developers don't have to manage servers anymore
- they just deploy code or functions!
- initially FaaS (Fx as a service)
- serverless was pioneered by AWS Lambda but now also includes anything that's managed :DB, msg, storage, etc
Serverless AWS services
Amazon S3, DynamoDB, Fargate, Lambda
Lambda
Virtual functions - no servers to manage!
Limited by time - short executions
Run on -demand
Scaling is automated
EC2 vs Lambda
Serverless Thumbnail creation & CronJob
image created in S3 then pushed to Lambda Fx creating a Thumbnail, then pushed to new thumbnail in S3 and Metadata in DynamoDB, ALL serverless integrations.
CRON allows you to define schedule and run script, runs on Linux AMI. CloudWath Events EventBridge, trigger every hr for Lambda fx to perform a task
Amazon API Gateway
Fully managed service for developers to easily create, publish, maintain, monitor, and secure APIs
example: building a serverless API
SERVERLESS and scalable
AWS Batch
Batch (scheduled) vs. continuous
- use of EC2 and Spot instances in ECS
Batch vs Lambda
Lamdba: time limit, limited runtimes, limited temporary disk space, serverless
Batch: no time limit, any runtime as long as it's packaged as a Docker image, rely on EBS/instance store for disk space, relies on EC2(can be managed by AWS)
Amazon Lightsail
Virtual server, storage, database and networking
Low & predictable pricing!
simpler alternative to EC2, RDS, ELB, EBs, Route 53...
great for people w/little cloud experience
Use Cases:
- simple web applications
- simple websites
- Dev/Test env
Elastic Beanstalk
Platform as a service for developers to only deploy code, end to end management of web application
- Health monitoring suite available within the service pushes metrics to CloudWatch.
- Also checks for app health, publishes health events [Show Less]