Skip to content
KALANBLON
Show contents

Chapter 1 of 7 · 20 min

The cloud and its models

By the end of this chapter, you'll be able to

  • Define the cloud and its essential characteristics
  • Tell IaaS, PaaS and SaaS apart
  • Explain the shared responsibility model
  • Choose a region and availability zones

What is the cloud?

The cloud (or cloud computing) means accessing, over the network, computing resources (servers, storage, databases, software) provided by a supplier. It is recognised by five characteristics:

  • on demand: you create a resource yourself, without waiting for a human to step in;
  • accessible over the network, from anywhere;
  • pooled: the provider's machines are shared between many customers, isolated from one another;
  • elastic: capacity goes up or down quickly as needed;
  • measured: you pay for usage (per second, per gigabyte, per request).

Let's compare both approaches for the revision platform, with example prices (rounded, invented for the exercise: real prices vary between providers, regions and over time):

weeks = [1] * 50 + [10, 10]
bought_server_cost = 2_600
weekly_rental_cost = 12

peak_size = max(weeks)
purchase = peak_size * bought_server_cost
rental = sum(n * weekly_rental_cost for n in weeks)

print(f"buying {peak_size} servers to handle the peak: {purchase} $")
print(f"renting by the week, as needed: {rental} $")
print(f"bought capacity left unused: {1 - sum(weeks) / (peak_size * len(weeks)):.0%}")
buying 10 servers to handle the peak: 26000 $
renting by the week, as needed: 840 $
bought capacity left unused: 87%

Over a year, buying 10 servers for two weeks of peak leaves 87% of the capacity unused. The example is deliberately extreme, and ignores electricity, maintenance or the lifetime of the purchased machines; but it shows the cloud's strength for a variable load. For a stable, predictable load, owning your servers can become cheaper again: the cloud is not always less expensive.

IaaS, PaaS, SaaS

Cloud services fall into three broad families, depending on what the provider manages for you:

  • IaaS (Infrastructure as a Service): you rent virtual machines, storage, networking. You install and maintain the operating system and everything else yourself;
  • PaaS (Platform as a Service): you provide your code or your container, the platform takes care of the servers, system updates and scaling. A managed database is an example;
  • SaaS (Software as a Service): you directly use complete software in your browser: email, online word processing, a project management tool.

Whatever the model, your data and who can access it remain your responsibility.

Step 5 of 5
Text description of the animation
  1. On your own servers, everything is your job, down to replacing the disks.
  2. With IaaS, the provider manages the physical machines; you manage the operating system and above.
  3. With PaaS, you only deal with your application and its configuration.
  4. With SaaS, you use the software; you neither develop nor maintain it.
  5. Whatever the model, your data and who can access it remain your responsibility.

Shared responsibility

When it comes to security, the provider and the customer share the work: this is the shared responsibility model. The provider protects the cloud (data centres, hardware, network, virtualisation); the customer protects what they put in the cloud (their data, accounts, settings, and with IaaS their operating system). The closer you get to SaaS, the bigger the provider's share, but it never covers everything.

Regions and zones

A provider spreads its data centres across regions (a geographical area: Western Europe, South Africa, South-East Asia…), each divided into several availability zones: independent centres (power, cooling, network), far enough apart for an incident to affect only one, close enough to communicate very quickly. You choose a region close to your users (response time depends on it) and compatible with data rules (the GDPR, for example, regulates transfers of personal data outside the European Union).

Mini-lab: stable or variable load?Python 3.13

Output

Click “Run”: Python will load in your browser (about 10 MB the first time).

Your code runs in your browser, isolated from the page. · Ctrl/⌘ + Enter to run · Esc then Tab to leave the editor

Your turn

Worked exercise

Worked exercise: which model, and who does the updates?

For each service, give its model (IaaS, PaaS or SaaS), then display who applies the operating system's security updates: the customer with IaaS, the provider with PaaS and SaaS.

services = {
    "a rented Linux virtual machine": ...,
    "a managed PostgreSQL database": ...,
    "an online email service for the team": ...,
    "a platform that deploys your container and adapts it to traffic": ...,
}
Hint 1
Ask yourself: do I provide a machine, code, or nothing at all?
Hint 2
A dictionary {"IaaS": "customer", "PaaS": "provider", "SaaS": "provider"} avoids a cascade of ifs.
Show the solution and common mistakes
services = {
    "a rented Linux virtual machine": "IaaS",
    "a managed PostgreSQL database": "PaaS",
    "an online email service for the team": "SaaS",
    "a platform that deploys your container and adapts it to traffic": "PaaS",
}
updates = {"IaaS": "customer", "PaaS": "provider", "SaaS": "provider"}

for service, model in services.items():
    print(f"{model:<5} {service} → system updates: {updates[model]}")
IaaS  a rented Linux virtual machine → system updates: customer
PaaS  a managed PostgreSQL database → system updates: provider
SaaS  an online email service for the team → system updates: provider
PaaS  a platform that deploys your container and adapts it to traffic → system updates: provider

A managed database is still PaaS, even if it is “just a database”: you choose its size and settings, the provider installs, updates and backs it up. Access rights to its data, however, remain your job in every case.

Common mistakes:

  • Classifying a managed database as SaaS: it is not software used by humans, but a component of your platform.
  • Believing that with PaaS there is nothing left to secure: configuration, secrets and access remain the customer's.

Summary

  1. 1The cloud provides resources on demand, over the network, pooled, elastic and paid for by usage.
  2. 2It shines for variable loads; for a stable load, owning your servers can cost less.
  3. 3IaaS, PaaS, SaaS: the provider takes over one more layer at each level.
  4. 4Shared responsibility: the provider secures the cloud, the customer what they put in it.
  5. 5Choose a region close to users and compliant with data rules, and several zones for resilience.

Your progress is saved on this device. Create a free account to keep your progress on all your devices.