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

./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.png EC2 instance types ./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.1.png

  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)

./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.2.png R6a R 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)

./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.3.png

Dedicated Hardware (vs shared hardware with virtualization)

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

./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.4.png


(2) scalability ./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.5.png 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

./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.6.png


(3) AWS messaging services

Simple Notification Service (SNS) ./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.7.png push / publish topic subscriber

Simple Queue Service (SQS) ./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.8.png queue stored on queue pull


(4) Serverless compute services

Lambda ./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.9.png


(5) container services

Elastic Container Service (ECS) Elastic Kubernetes Service (EKS) ./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.10.png

Fargate - “serverless containers” ./resources/course-aws-cloud-practitioner-essentials-2.-comput.resources/unknown_filename.11.png fargate pricing (per vCPU / GB per hour) https://aws.amazon.com/ecs/pricing/