Compute Services
Compute is the foundation of cloud computing β it's where your code runs. Cloud providers offer multiple compute options, from virtual machines to containers to serverless functions.
Compute Options
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β COMPUTE SPECTRUM β
β β
β More Control More Abstraction β
β βββββββββββββββββββββββββββββββββββββββββββΊ β
β β
β Bare Metal β VMs β Containers β Serverless β
β ββββββββββ ββββββ ββββββββββββ ββββββββββββ β
β βPhysicalβ βEC2 β β ECS/EKS β β Lambda β β
β βServers β βVMs β β Docker β β Functionsβ β
β ββββββββββ ββββββ ββββββββββββ ββββββββββββ β
β β
β You manage more ββββββΊ Provider manages more β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
Virtual Machines (IaaS)
Virtual machines are the most common compute option. You get a full operating system running on virtualized hardware. Great for applications that need full OS control or specific software configurations.
AWS: EC2 (Elastic Compute Cloud) β dozens of instance types for different workloads.
Azure: Virtual Machines β tight integration with Windows Server and Active Directory.
GCP: Compute Engine β custom machine types and sustained-use discounts.
Containers
Containers package your application and its dependencies into a lightweight, portable unit. They start faster than VMs and use fewer resources, making them ideal for microservices.
AWS: ECS (Elastic Container Service), EKS (Elastic Kubernetes Service)
Azure: Azure Container Instances, AKS (Azure Kubernetes Service)
GCP: GKE (Google Kubernetes Engine) β the most mature managed Kubernetes
Serverless
With serverless, you deploy functions or event-driven code without managing any servers. The provider handles scaling, patching, and availability. You pay only when your code runs.
AWS: Lambda β up to 15 minutes execution, supports most languages.
Azure: Azure Functions β integrates deeply with the Microsoft ecosystem.
GCP: Cloud Functions β simple event-driven functions with HTTP triggers.
Choosing the Right Option
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Question: What do you need? β
βββββββββββββββββββ¬βββββββββββββββββββββββββββββββ€
β Full OS controlβ β Virtual Machine (EC2) β
β Microservices β β Containers (ECS/GKE) β
β Event-driven β β Serverless (Lambda) β
β Quick experimentsβ β Managed Platform (Beanstalk)β
βββββββββββββββββββ΄βββββββββββββββββββββββββββββββ