IaaS, PaaS, SaaS and Serverless: Choosing the Right Cloud Service Type with Everyday Examples
The Pizza Analogy
| Model | Pizza example | Cloud example |
|---|---|---|
| On-premises | Make it at home: you do everything | Own datacenter |
| IaaS | Buy the dough and sauce, cook in your own oven | Rent the machine, you manage OS and apps |
| PaaS | Take and bake: someone makes it, you bake | Provider manages platform, you bring your app |
| SaaS | Eat at the restaurant | Use the finished software |
IaaS: Infrastructure as a Service
- You rent virtual machines, storage and networks
- You manage: operating system, patches, middleware, apps and data
- Provider manages: physical hardware and virtualization
- Azure examples: Virtual Machines, Virtual Network, Storage Accounts
- Use for: lift and shift of existing apps, full control, special software
PaaS: Platform as a Service
- You get a ready platform to build and run apps
- You manage: your application code and data
- Provider manages: OS, runtime, patches, scaling and hardware
- Azure examples: App Service, Azure SQL Database, Azure Functions (also serverless)
- Use for: developers who want to focus on code
SaaS: Software as a Service
- Finished software you use over the internet
- You manage: your data, users and settings
- Provider manages: everything else
- Examples: Microsoft 365, Dynamics 365, Outlook.com
Serverless
- You run code without managing servers. The provider allocates resources when needed
- Event-driven: code runs when something happens (a file upload, a message, a timer)
- Pay per execution, scale to zero when idle
- Azure examples: Azure Functions, Logic Apps, Event Grid
- Servers still exist, but you do not manage them
Comparison
| IaaS | PaaS | SaaS | Serverless | |
|---|---|---|---|---|
| Control | Highest | Medium | Lowest | Low (you provide code) |
| Management effort | Highest | Medium | Lowest | Very low |
| Example | Azure VM | Azure App Service | Microsoft 365 | Azure Functions |
Choosing
| Need | Choose |
|---|---|
| Move an old app unchanged | IaaS |
| Host a website without managing servers | PaaS |
| Email and office apps | SaaS |
| Run small code when a photo is uploaded | Serverless |
Practice
- Classify: Azure Virtual Machine, Azure SQL Database, Microsoft 365, Azure Functions
- Who manages the OS in PaaS?
- Why can serverless be cheaper for rare tasks?
Conclusion
IaaS gives you machines, PaaS gives you a platform, SaaS gives you finished software and serverless runs your code on events without servers to manage. Higher up the list means less work for you.
Quick Summary: analogy; IaaS; PaaS; SaaS; serverless; compare; choose.

