Course: AWS Cloud Practitioner Essentials - 2. Compute in the Cloud

July 26th, 2022

Compute in the cloud

  1. ec2

    • instance types

    • pricing

    • dedicated hardware

  2. scaling

    • auto-scaling

    • load balancing

  3. messaging

    • Simple Notification Service (SNS)

    • Simple Queue Service (SQS)

  4. Serverless

    • Lambda

  5. container services

    • Elastic Container Service (ECS)

    • Elastic Kubernetes Service (EKS)

    • Fargate "serverless containers"

 


 

(1) EC2

 

no description for image available

EC2 instance types

no description for image available

 

  1. general purpose - balances compute, memory, network

  2. compute optimized - high-performance processors

  3. memory optimized - high-performance databases (db needs memory)

  4. storage optimized - data warehousing

  5. accelerated - (special use-cases)

 

no description for image available

R6a

R<version><cpu-arch>

6-> v6

a amd

i intel

 

EC2 Pricing

pay for what you use

 

EC2 instance pricing options

  1. on-demand (pay for what you use)

  2. spot (cheaper, might be interrupted)

  3. reserved (cheaper, pay for instances even when not using it)

  4. compute savings plan (cheaper, pay for consistent compute usage)

 

no description for image available

 

 

Dedicated Hardware (vs shared hardware with virtualization)

  • dedicated instance (eg. legal compliance)

  • dedicated host - physical box (eg. licensing requirements)

no description for image available

 

(2) scalability

no description for image available

auto-scaling

  • get more instances when (eg. 3 minutes of 70% usage)

 

elastic load balancing

  • get the traffic into the instance

 

side-effect: resilience when an instance crashes

 

no description for image available

 


 

(3) AWS messaging services

 

Simple Notification Service (SNS)

no description for image available

push / publish

topic

subscriber

 

Simple Queue Service (SQS)

no description for image available

queue

stored on queue

pull

 


 

(4) Serverless compute services

 

Lambda

no description for image available

 


 

(5) container services

 

Elastic Container Service (ECS)

Elastic Kubernetes Service (EKS)

no description for image available

 

Fargate - "serverless containers"

no description for image available

fargate pricing (per vCPU / GB per hour)

https://aws.amazon.com/ecs/pricing/