Module 3 · Where Data Lives

Where does a video app keep all its videos, comments and views?

Lesson 3.3 · Five Homes for the Same Data

Ashley · Felix · Rosa

Felix: “One big table?” Everyone else: “…”

Rosa asks Ashley where the platform keeps all of it.

Ashley says “the cloud” and immediately realizes she has no idea what that means.

Felix, who has just learned about tables, suggests it’s one very large table. It is not.

It’s five different kinds of place, and Felix’s sneaker sheet is about to visit every one of them.

The short answer

Spreadsheet, database, warehouse, lake, stream: A spreadsheet is one person’s table. A database is many people’s linked tables, written the instant something happens. A warehouse is a copy rebuilt for questions. A lake is the raw pile kept in case, and a lakehouse puts table rules on top of it. A stream is the events themselves, moving. Big companies run all five, and “the cloud” is the building they sit in.

Try it yourself

Felix’s sneaker sheet outgrows itself, five times. Tap each home to see what lives there, and read the wire for what pushed the data on.

when two people edit it at oncewhen questions slow the checkout linewhen raw files fit no tablewhen tomorrow is too lateONE PERSONSpreadsheettwenty flips, one tabONE BUSINESSDatabaselinked tables, from 3.2ONE COMPANY’S QUESTIONSWarehousea star of tablesEVERYTHING, RAWLake and lakehousefiles as they arrivedRIGHT NOWEvent streamevery tap, as it happens

Tap a stop to see where the data goes and who ends up with it.

What you just did has a name

Spreadsheet, database, warehouse, lake, stream

A spreadsheet is one person’s table.

A database is many people’s linked tables, written the instant something happens. A warehouse is a copy rebuilt for questions.

A lake is the raw pile kept in case, and a lakehouse puts table rules on top of it. A stream is the events themselves, moving.

Big companies run all five, and “the cloud” is the building they sit in.

A few more things

When to move up

The tell is always a limit you hit. A spreadsheet that three people edit at once loses rows. A database asked for a big report slows down the people doing the work. A warehouse can’t take raw video. Nothing that runs on a schedule can send a fraud alert. Each home fixes the last one’s limit, and each one costs more to run.

The warehouse is shaped like a star

Lesson 3.2 split everything into small linked tables so an update happens once. A warehouse takes one step back the other way: a single fact table with one row per view (which video, which viewer, which day, seconds watched) ringed by small dimension tables for Videos, Viewers and Dates. “Views per game per month” becomes one join on a star instead of six. That shape is behind nearly every dashboard you’ll ever see.

“The cloud” is somebody’s building

The cloud means data centers: warehouses full of computers, rented by the hour. Ashley’s comments live on a disk in one of them, copied to a second building in case the first one loses power.

Go deeper

The longer version, if you want it.

Hub and spoke, and how the names keep changing

Inside a company the warehouse usually sits in the middle of a hub and spoke. Every system that makes data (the app, the ad server, billing, support) is a spoke sending copies into the hub overnight, and every report and dashboard reads from the hub instead of poking the live systems. One place to clean, one place to ask. When a report is wrong at a big company, someone is checking which spoke sent bad rows.

Relational databases (1970s) were built for running a business one record at a time. Warehouses (1990s) copied that data somewhere tuned for big questions, so reports didn’t slow down the checkout line. Lakes (2010s) appeared when companies wanted to keep every raw click and video, which no warehouse could afford to tidy. Lakehouses (2020s) put table rules back on top of lake storage. The names change every decade. The tension doesn’t: clean and fast to ask, or complete and cheap to keep.

Quick check

Three of Felix’s friends now add flips to his sheet, and the same shoe shows up twice with two different prices. What has the sheet outgrown?

Let’s take it slower

Think of a house that keeps getting too small. Your notebook is the spreadsheet, fine until a second person needs to write in it. So the facts move into linked tables where each one lives once, and that’s the database. Then the boss wants a big report and the questions slow down the people doing the work, so a copy gets rebuilt every night just for questions. That’s the warehouse. Then the video files and the raw logs show up and no table fits them, so they go in a pile. That’s the lake. And some answers can’t wait for the nightly copy at all, so the events get handled the second they happen. That’s the stream. Nobody planned five homes. Each one was the fix for the last.

More examples

1

The club roster

A club keeps its members in a spreadsheet. Two officers edit it at once, one saves over the other, and a kid quietly disappears from the list. The moment two people need to write, the roster wants a database, even a tiny one. That’s the first move up, and most groups make it late.

2

The weather service

Every radar sweep and satellite image goes into a lake, an enormous pile of raw files. The daily high and low for your town goes into a warehouse table. Your weather app reads the tidy table. A researcher studying one storm digs through the lake.

Back to the question

So where does the platform keep all of it?

Show the answer

The tap that recorded each view came in as an event and was written to the database that runs the platform. The video files and raw comments sit in a lake. The daily view counts Ashley sees were rebuilt overnight in a warehouse shaped like a star, then exported to her spreadsheet. Four homes for one view, and “the cloud” is the polite name for the building.

More on this: What is a database?

One last question

Which of these belong in a lake rather than a warehouse?

Tap everything that fits, then check.

Talk Card

Talk Card · 3.3

Same data, five homes: a spreadsheet for one person, a database for many, a warehouse for questions, a lake for the raw pile, and a stream for right now.

Data to AI · pettigrewlab.com/learn

Next lesson