Sub topic 16
Choosing a model for a workload
This chapter assumes you know what IaaS, PaaS, and SaaS are, how the shared responsibility split changes across them, and the basics of cloud pricing. Here you turn that knowledge into a decision you can defend.
Start from the workload, not the model
Choosing a model means deciding how much of the stack you want to manage. Each layer you hand to the provider saves effort and costs you some control. Ask these questions in order:
- Does a finished product already do the job? If so, use SaaS.
- If you must write your own code, does it fit a managed runtime? If so, use PaaS.
- Do you need control of the operating system, the network, or custom software? If so, use IaaS.
Most teams stop at the first "yes". Moving down the list adds work, so go further only when a real requirement forces you to.
Criteria that move the decision
| Criterion | Pushes toward IaaS | Pushes toward PaaS or SaaS |
|---|---|---|
| Control of OS and network | Custom kernel, drivers, or agents required | Standard runtime is enough |
| Team size and skills | Team has operations experience | Small team, no operations staff |
| Time to launch | Longer setup is acceptable | Speed matters most |
| Compliance | Rules require control of the host | Provider certifications are enough |
| Portability | Must run anywhere | Lock-in is acceptable |
| Cost shape | Steady, predictable load | Spiky or unknown load |
Worked examples
- A company needs email and calendars. Nothing here is unique to the business, so choose SaaS. Running your own mail servers adds cost and risk and gives no advantage.
- A startup builds a small web API in Python. The code runs on a standard runtime, and the team has no operations staff. Choose PaaS, such as Elastic Beanstalk. You push code and the platform handles servers.
- A vendor ships a legacy application that needs a specific operating system and a licensed agent. A managed runtime cannot host it. Choose IaaS and take on patching and monitoring.
Common errors
- Choosing IaaS by habit. It feels flexible, but you then own patching, scaling, and backups. Count that labor as a cost.
- Ignoring the exit path. Proprietary PaaS and SaaS features are hard to move. Check how you would export your data before you commit.
- Mixing models by accident. Real systems often combine them: SaaS for email, PaaS for the web app, IaaS for one legacy server. That is fine if you know who is responsible for each part.
- Forgetting that responsibility never fully transfers. Under every model you still own your data and your access controls.
Exercise
A team runs a stable internal reporting tool written in Python. It needs no special operating system features. Traffic is low and unpredictable, and nobody on the team does server administration. Which model fits best, and what single fact would change your answer to IaaS?
Show answer
PaaS fits best. The code runs on a standard runtime, load is spiky, and the team has no operations skills, so the platform should handle servers and scaling. The answer changes to IaaS if the tool depends on something a managed runtime cannot provide, for example a custom operating system package or a licensed agent that needs root access.
Exercise
Why is "start with IaaS because it gives the most flexibility" a weak default?
Show answer
Flexibility comes with responsibility for the operating system, patching, scaling, and backups. Unless a requirement needs that control, the added labor and risk outweigh the benefit.