>> Special Topics / 03 / Lecture

The Cloud,
Demystified

Someone else's computer, for rent
Netflix, Instagram, ChatGPT, your college's website — almost nothing runs on its owner's own machines anymore. They rent computers by the hour. That rental business is "the cloud".
Lecture
75 min
Builds on
ST1 + ST2
Series
ST · How It Really Works
ST 03 / 03
>> Today's roadmap

Six stops in the data center

  1. What the cloud really is (and isn't)
  2. The problem it solves — why owning servers hurts
  3. Inside a data center — what's actually there
  4. IaaS / PaaS / SaaS — the three ways to rent
  5. Virtualization & scaling — many tenants, instant growth
  6. Pay-as-you-go — and where your Python could run
>> The hook

"There is no cloud.
It's just someone else's computer."

The word "cloud" hides a very ordinary truth. When your photos are "in the cloud", they're on a hard drive, in a building, in a city somewhere, owned by a company like Amazon or Google.

The genius isn't the technology — it's the business model: rent computing by the minute, so you never have to buy, house, or babysit a server yourself.

>> 02 / 06 · The problem it solves

Why owning your own servers hurts

OLD WAY · BUY
  • Spend lakhs upfront before serving one user.
  • Guess your peak load — guess wrong, you crash or overpay.
  • Wait weeks for new hardware to ship.
  • Power, cooling, security, repairs — all yours.
CLOUD WAY · RENT
  • Pay pennies per hour, only while you use it.
  • Need 100 more servers for one busy night? Click. Done in seconds.
  • Turn them off in the morning, stop paying.
  • Power, cooling, repairs — their problem.
>> 03 / 06 · Inside a data center

The "cloud" is this building

A warehouse the size of a stadium, filled with rack after rack of the computers from ST1 — tens of thousands of them, running 24/7.

Racks of servers

Stripped-down computers — just CPU, RAM, storage, network. No screen, stacked in metal shelves.

Power & cooling

Backup generators, batteries, and massive A/C — heat is the enemy. Cooling can cost as much as the computing.

Redundancy

Two of everything. A drive dies, a server fails — your data is copied elsewhere, you never notice.

>> 04 / 06 · The three service models

Three ways to rent — how much do they manage?

IaaS
Infrastructure

You rent a bare computer. You install everything. Most control, most work.

e.g. AWS EC2

PaaS
Platform

You just upload your code. They run it. No server admin. The sweet spot for beginners.

e.g. Heroku, Render

SaaS
Software

You just use the app in a browser. Someone else built and runs all of it.

e.g. Gmail, Canva

>> 05 / 06 · The trick that makes it cheap

One real computer, many "virtual" ones

A single powerful server is sliced by software into many isolated machines. You rent a slice; your neighbour rents another; neither of you can see the other.

VM — you
your Python app
VM — a startup
their website
VM — a student
their project
↓ all share ↓
One physical server in the data center
the real CPU, RAM & storage from ST1
>> The superpower

Scaling — grow in seconds, shrink at midnight

VERTICAL · bigger

Give the one server more CPU and RAM. Simple, but there's a ceiling — and you must reboot.

HORIZONTAL · more

Add more servers and split the traffic between them. Nearly unlimited — this is how Netflix survives a new release.

>> 06 / 06 · The meter is running

You pay like electricity, not like a car

No big purchase. A meter ticks for compute time, storage, and data sent out — billed to the second.

a_tiny_monthly_bill
# A small Python web app, running all month:
small server (1 CPU, 1 GB)  : 730 hrs × $0.010  = $ 7.30
storage for your files      : 10 GB  × $0.023  = $ 0.23
data sent to users          : 5 GB   × $0.090  = $ 0.45
                                            ─────────
                              total/month  ≈ $ 8.00

# Forgot to turn off a big GPU box? That same month: $1,000+ 😱
>> The landscape

Who rents, and why location matters

AWS

Amazon. The biggest, oldest, most services.

Azure

Microsoft. Big in companies & offices.

Google Cloud

Google. Strong in data & AI.

Regions & availability zones. Each provider has data centers worldwide — Mumbai, Singapore, Frankfurt. You pick the one closest to your users so the ST2 journey is short and the app feels fast. Spread across zones, and a whole building can fail without taking you down.
>> Bringing it home

Your Python script, on the internet

Everything you've written runs on your laptop. With the cloud, the same file can run on a rented computer that's online 24/7 — reachable by anyone, anywhere.

the_whole_series_in_one_picture
your code  (the Python you wrote)
    ↓  upload to a PaaS  (Render, Railway, PythonAnywhere…)
a rented computer  (ST1: CPU + RAM + storage, in a data center)
    ↓  given a public IP + a DNS name
the internet  (ST2: DNS → packets → HTTPS)
    ↓
anyone, anywhere, opens your-app.com  →  your code runs
>> Try it yourself

Touch the cloud

PRICE IT
Read a real menu

Open a free-tier signup (Render or PythonAnywhere). Find the price of the smallest server. Work out the monthly cost — and whether the free tier covers a class project.

CLASSIFY
IaaS, PaaS, or SaaS?

Label five apps you use daily — Gmail, YouTube, your bank app, Canva, ChatGPT. Which model is each, and how can you tell?

>> End of the Special Topics series

You can now see the whole stack

  • ✓ ST1 — one computer: CPU, memory, storage, doing tiny operations billions of times a second.
  • ✓ ST2 — the internet: addresses, DNS, packets and HTTPS connecting those computers.
  • ✓ ST3 — the cloud: renting those computers, at scale, by the second.
  • ✓ And where your Python fits into all of it.
01 / 13
←/→ navigate   F fullscreen   Ctrl/⌘+P save as PDF