IaaS, PaaS, SaaS, containers and serverless
What you manage and what the provider manages in each model, and when each one fits.
On the roadmap:Beginner · step 5: Containers 101
Lesson 13 of 23 · 7 min read · quiz · exercise
The stack and who manages what
Every application sits on layers: networking, storage, servers, virtualisation, operating system, runtime, application, data. Cloud models differ in how many layers the provider handles for you.
| Model | You manage | Provider manages | Example |
|---|---|---|---|
| On premises | everything | nothing | your own data centre |
| IaaS (infrastructure) | OS, runtime, app, data | hardware, virtualisation, network | virtual machines, block storage |
| PaaS (platform) | app and data | OS, runtime, scaling | managed app platforms, managed databases |
| FaaS / serverless | function code | everything else, including scaling | event-triggered functions |
| SaaS (software) | your usage and settings | the whole application | email, CRM, collaboration tools |
More managed means less work and less control. Less managed means more flexibility, and more to operate.
Figure SDA-CORE-13-1 · Who manages what in each model · © forcsguy.com
Virtual machines and containers
- A virtual machine emulates hardware and runs a complete guest OS. Strong isolation, heavier, slower to start.
- A container packages an app and its dependencies and runs as an isolated process on the host's kernel. Lightweight, starts in seconds, and runs the same everywhere ("works on my machine" problems shrink).
- Orchestrators such as Kubernetes schedule containers across machines, restart failed ones, scale and roll out updates.
Figure SDA-CORE-13-2 · Virtual machines and containers · © forcsguy.com
Serverless
You provide a function; the platform runs it on demand and bills per execution. Strengths: no servers to manage, scales to zero and up automatically, and you pay for use. Limits: cold starts (first request after idle is slower), maximum run time, limited local state, and harder local testing. Best for event-driven, spiky or glue workloads.
Choosing
- Spiky or tiny workloads, small team: serverless or PaaS.
- Steady high load or special needs: containers or VMs with more control, often cheaper at scale.
- Need maximum control, compliance or custom hardware: IaaS or on premises.
- Use managed databases and queues where you can: operating them well is hard.
- Beware lock-in: prefer open formats (containers, standard SQL) when portability matters.
Related reading
- TechWorld with Nana: Docker & KubernetesNana Janashia · TechWorld with NanaYouTube
- AWS Containers BlogAmazon Web Services engineers · Amazon Web ServicesBlogs
- Awesome KubernetesRamit Surana · ramitsuranaGitHub
- Kubernetes ConceptsKubernetes Authors · CNCF / KubernetesDocumentation
Show 6 moreShow fewer
- Docker BlogDocker engineers · DockerBlogs
- Docker OverviewDocker · Docker Inc.Documentation
- Docker Containers that Power Over 100.000 Online Shops at ShopifyShopify engineers · ShopifyCase Studies
- Build Your Own XCodeCrafters · GitHubGitHub
- Docker Engineering BlogDocker engineers · DockerBlogs
- Scaling Git at Microsoft - Saeed Noursalehi, Principal Program Manager at MicrosoftMicrosoftYouTube
Check your understanding
Question 1 of 3
0 correct so far
In IaaS, who manages the operating system?
Topics covered in this lesson
Practise it: Rent only what you need
Everything below is already set up for this lesson: change the design, run the traffic, and see whether you meet the goal.
- 1The task
- 2Build and test
In the cloud capacity is a bill. A daily cycle means you pay for peak all day if you do not use the cheaper levers.
Goal: Under 1% errors, within $2,000 a month at a daily peak of 5,600 requests per second.
Compute is the most expensive lever. What offloads work for less?
Try it yourself
A small team is building a web app with unpredictable traffic and wants to avoid managing servers. Which model would you start with, and what would make you move to something else later?
Click what a strong design here would need:
More in Building blocks
© 2026 forcsguy.com. Original lesson text and diagrams. Books and sites linked above belong to their authors.