Lesson 1 - Introduction and Basics Flashcards
what is EC2
Amazon Elastic Cloud compute
what are instant families in EC2
- General Purpose Instants
- Compute Optimized
- Memory Optimized
- Accelerated Computing
- Storage Optimized
Amazon EC2 Purchase Options
- On Demand - To test and work on basics and to analyse
- Savings Plan (Upto 72%) - Average hours of usage prized in USD for 2-3 years
- Reserved Instance - For Predictable usaged, used for known work (Upto 75%)
- Spot Instance - Upto 90%. Aplications that can withstand interruptions like batch processing etc..
- Dedicated Host - Dedicated resources
Scaling of EC2
Beginning with few resources and designing architecture to automatically respond to changing demands by scaling in/out
Amazon Ec2 Auto-scaling Types
- Dynamic Scaling - respond to changing demands
- Predictive scaling - scheduling right no of instances for predictable usage
Elastic Load Balanceing (ELB)
Regional Construct: If more traffic, autoscaling tech, lets the elastic load balancer knows that it is ready to handle @ ELBs sends request to them
ELB
refer a diagram
Messaging and Queuing
- Amazon Simple Queue Service (ASQS)
Just sends message to queues and Receiver receives (No Subscriber Publisher) - Amazon Simple Notification Service (ASNS) Publisher and subscriber Model.. Receives Notifications and messages
what is serverless in AWS
Cannot see/access the underlying infra or instances that are hosting our application
what are different types of Serverless
- AWS Lambda - For loads with runtime <15
- Amazon Elastic Container service ECS -Docker based container orchestration
- Amz Elastic Kubernates Service EKS- Kubernates based
Differences between serverless and EC2
EC2- Host Traditional service. Fusll
access to Host
AWS Lambda - For short app, service
oriented app or event driven app.
No access to host
ECS,EKS - Docker or container based
workload
what to use for server access and serverless access
If server access needed - EC2
Else - Fargate
What is Fargate
Serverless Cloud service. For Docker or Kubernates Service