Skip to content
AWS Compute

AWS Compute

Executive Summary

AWS compute provides on-demand capacity across unmanaged, managed, and serverless models. These options let teams balance control, operational overhead, and scaling needs. Compute refers to the processing power required to run applications, including virtual machines, containers, and serverless functions.

AWS compute services allow you to provision and scale resources on demand without managing physical hardware.

Compute Models

ModelLevel of ControlManagement ResponsibilityExample Services
Unmanaged ComputeHighYou manage OS, runtime, scalingAmazon EC2
Managed ComputeMediumAWS manages orchestrationAmazon ECS, Amazon EKS
Serverless ComputeLowAWS manages everything except codeAWS Lambda, AWS Fargate

Compute Selection Guide

Use CaseBest Option
Full OS controlEC2
Container orchestrationECS or EKS
Run code on eventsLambda
Run containers without managing serversFargate
Kubernetes workloadsEKS

Amazon EC2

Amazon Elastic Compute Cloud (EC2) provides resizable virtual machines in the AWS Cloud. EC2 instances run in a Region and can be launched in multiple Availability Zones for high availability.

Instance TypeDescriptionExample Use Cases
General PurposeBalanced compute, memory, and networkingWeb servers, dev/test
Compute OptimizedHigh-performance CPUML inference, batch processing
Memory OptimizedHigh memory-to-CPU ratioDatabases, analytics
Accelerated ComputingGPUs or FPGAsML training, 3D rendering
Storage OptimizedHigh I/O performanceLarge NoSQL, data warehouses

EC2 Core Components

  • Amazon Machine Image (AMI): Template used to launch instances
  • Instance Type: Hardware configuration (CPU, memory, network)
  • Key Pair: Secure SSH access method
  • Security Groups: Instance-level firewall rules
  • Elastic IP: Static public IP address

EC2 Pricing Options

  • On-Demand: Pay per second without commitments.
  • Reserved Instances: Long-term discounts.
  • Spot Instances: Use spare capacity at steep discounts.
  • Savings Plans: Flexible, commitment-based savings.
  • Dedicated Instances/Hosts: Single-tenant hardware.

Scaling and Elasticity

  • Scalability: Long-term ability to increase capacity.
  • Elasticity: Real-time adjustment of resources.

EC2 Auto Scaling

Auto Scaling automatically adjusts the number of EC2 instances based on demand or defined policies.

It uses:

  • Minimum Capacity: Lowest number of instances
  • Desired Capacity: Target number of instances
  • Maximum Capacity: Upper limit of scaling

Elastic Load Balancing (ELB)

ELB distributes incoming traffic across multiple targets to improve availability and reliability.

Types of Load Balancers

  • Application Load Balancer (ALB): HTTP/HTTPS traffic, Layer 7 routing
  • Network Load Balancer (NLB): High-performance TCP/UDP traffic
  • Gateway Load Balancer (GWLB): Network appliance integration

Serverless Compute

AWS Lambda

AWS Lambda is an event-driven serverless compute service that runs code in response to triggers.

Common use cases:

  • Event-driven processing
  • Backend APIs
  • File transformation workflows
  • Automation tasks

Containers on AWS

Containers package applications and dependencies into a lightweight, portable unit. AWS provides multiple services to run and manage containers depending on control and scalability needs.

ServiceDescription
Amazon ECSAWS-native container orchestration
Amazon EKSManaged Kubernetes
Amazon ECRPrivate container registry
AWS FargateServerless compute for ECS and EKS

Microservices Architecture

Microservices split applications into independently deployable services to improve resilience, scalability, and deployment speed.

Key Terms Summary

TermDefinition
EC2Virtual machines in AWS
AMITemplate for EC2 instances
Auto ScalingAutomatic adjustment of compute capacity
ELBDistributes traffic across targets
LambdaServerless event-driven compute
ContainerLightweight application packaging unit
FargateServerless container runtime
Last updated on