Skip to content

Compute

Running code — from bare metal to serverless.


The Compute Spectrum

Most control                                          Least control
     ↓                                                      ↓
Bare Metal → EC2 → Containers (ECS/EKS) → Lambda (serverless)

More control = more you manage. Less control = AWS manages more, you pay for simplicity.


Notes in This Section

Note What It Covers
EC2 Deep Dive Instance types, storage, networking, pricing
Lambda Event-driven serverless — triggers, limits, cold starts
AWS Nitro System The hardware/hypervisor stack under EC2

Key Decision Framework

Scenario Choose
Full OS control needed EC2
Containerised workload ECS (Fargate) or EKS
Event-triggered, short-lived Lambda
Legacy lift-and-shift EC2
API backend, variable traffic Lambda or Fargate