← All posts

System Design, Plainly — Season 3, Part 6: Data Lakes vs Warehouses vs Lakehouses

2026-12-05 · System design (Season 3, Part 6 — data lakes vs warehouses vs lakehouses)

The most repeated claim in data architecture is wrong, and it's wrong by a factor of ten. "Object storage is 10–50x cheaper than warehouse storage" — check the list prices, December 2026, US East: S3 Standard is $23.55 per TB per month. Snowflake storage is $23.00 per TB per month. Per stored terabyte, they tie. The lakehouse does not win on storage prices. It wins because it deletes the second copy of your data — and because the copy was never just a storage bill. It was staleness, disagreement, and torn reads, all billed separately.

Season 3 is "Data in Motion & at Rest". Part 1 covered message-queue delivery semantics, Part 2 stream windows and watermarks, Part 3 event sourcing and CQRS, Part 4 inverted indexes, Part 5 Bloom filters. This part is the storage layer those systems sit on: where the truth lives, what it costs, and how it breaks. The benchmark hook is cost arithmetic with verified list prices — every number below is recomputed in the companion notebook.

The ELI5 version

A data warehouse is a library with a card catalog. Every book is shelved, labeled, and indexed; you can find anything in seconds. The catch: the library only accepts books (structured tables), and shelf space is priced like prime real estate.

A data lake is a warehouse full of unsorted boxes. Anything fits — books, photos, loose papers, video tapes — and the rent is cheap. The catch: finding anything means opening boxes, and if someone is mid-way through relabeling a box, you might read half the old label and half the new one.

A data lakehouse is the boxes plus a catalog taped to each box. The boxes stay cheap and open; the catalog gives you transactions, schema enforcement, and time travel. The trick that makes it possible is the open table format — Iceberg, Delta Lake, or Hudi — a metadata layer that turns a pile of files into a table without moving the files.

The three, side by side

Warehouse Lake Lakehouse
Storage Proprietary format, coupled to compute Open files on object storage Open files (Parquet) on object storage
Cost per stored TB/month $23 (Snowflake, after compression) $23.55 (S3 Standard) $23.55 — same object storage
ACID transactions Yes No Yes, via the table format
Schema Enforced on write On read, or not at all Enforced on write, with evolution
Query speed Fastest for SQL Slow — full scans Near-warehouse with pruning + compaction
ML workloads Poor — export the data first Native — raw files Native — same files, two engines
Data types Structured only Any Any
Lock-in High (vendor format) Low (open files) Low (open formats)

Three architectures: the warehouse (structured tables, fast SQL, expensive), the lake (any file, cheap, no guarantees), and the lakehouse (open Parquet files plus a transaction log — warehouse reliability on lake storage).

The cost arithmetic, honestly

The naive pitch says object storage is 10x cheaper. The real math says the two-tier architecture's storage bill is exactly 2x the lakehouse's, at every scale — because it stores everything twice:

Raw data Two-tier storage/month Lakehouse storage/month Saving
10 TB $93 $47 49%
100 TB $931 $471 49%
1,000 TB $9,310 $4,710 49%

Assumptions, stated plainly: 5x Parquet compression (conservative; columnar data typically lands 5–10x vs raw JSON/CSV), one lake copy plus one warehouse copy in the two-tier case, one copy in the lakehouse case. The 49% is not "object storage is cheaper" — it's "you stopped paying for the copy." Tiering is the second lever, and it's real: cold data on Standard-IA is $12.80/TB-month, and Deep Archive is ~$1.01/TB-month — 100 TB of raw data's cold copy costs $20 a month, not $471.

Monthly storage cost vs raw data volume: the two-tier architecture pays for two copies at every scale, the lakehouse for one — a 49% saving that is structural, not a price difference.

Compute is where the meters actually diverge. BigQuery on-demand charges $6.25 per TiB scanned, first TiB free each month. Snowflake charges $2 per credit on Standard, with an XS warehouse burning 1 credit an hour. So:

Monthly compute cost vs TiB scanned: BigQuery on-demand climbs at $6.25/TiB while a Snowflake XS warehouse is flat at $400 for 200 hours; 90% partition pruning cuts the on-demand bill 10.3x.

How it breaks: staleness, torn reads, and the small-file tax

Staleness. A two-tier pipeline copies lake → warehouse on an ETL schedule, and the schedule is a staleness guarantee. With hourly ETL, a dashboard read at a random time sees data that is Uniform(0, 60) minutes old: mean 30 minutes, and half of all reads are more than 30 minutes stale. Worse, the ML feature store reads the lake while the dashboard reads the warehouse — same question, two answers, and both are "correct" against their own copy. Micro-batching to 15 minutes halves the mean to 7.5 minutes and quadruples the ETL runs; it never reaches zero, because the copy is the problem, not the schedule. The lakehouse removes the copy, so a commit is visible to every reader in seconds.

Torn reads. A lake stores a table as many Parquet files, and rewriting a table means replacing those files one by one. A reader arriving mid-rewrite sees a mix of old and new files — a torn table, with no error and no warning. Toy model, recomputed in the notebook: reads arrive at rate λ, a rewrite takes w seconds, so P(a read overlaps a rewrite) = 1 − e^(−λw). A 2-second rewrite with one read every 5 seconds gives a 33% chance that any given read sees a torn table. The table format fixes this with an atomic metadata commit: readers see the old snapshot or the new one, never a mix. This is the single most important thing Iceberg, Delta Lake, and Hudi buy you — not performance, correctness.

The small-file tax. The lakehouse's maintenance bill replaces the ETL bill. Ingest thousands of tiny files and every query pays to list and open every file; planning time grows with file count, not data size. Compaction — rewriting many small files into few large ones — is the recurring chore, and skipping it is how a lakehouse quietly becomes the slow lake it replaced. Budget for compaction the way you used to budget for ETL.

Left: staleness under hourly ETL is uniform from 0 to 60 minutes (mean 30) while a lakehouse commit is visible in seconds. Right: the probability a reader sees a torn table grows with rewrite duration — 33% for a 2-second rewrite at one read per 5 seconds.

Iceberg vs Delta Lake vs Hudi: the format war is over

Three formats, one job — the transaction log on top of Parquet:

Apache Iceberg Delta Lake Apache Hudi
Origin Netflix → Apache Databricks, open-sourced 2019 Uber → Apache
Engine support Widest — designed engine-agnostic Best on Databricks/Spark; UniForm bridges the rest Spark + Flink, streaming-first
Best for Multi-engine shops Databricks shops Heavy upserts / streaming ingest
2026 position The default standard The Databricks choice The streaming specialist

Iceberg won the standard war: every major vendor reads it now, Databricks acquired Tabular (Iceberg's founders) in 2024, and Snowflake and BigQuery both support Iceberg tables natively. The decision rule is simple: Databricks shop, Delta Lake; multiple engines, Iceberg; streaming upserts, Hudi; unsure, Iceberg — it has the broadest engine support and the most active community. The formats are converging anyway (Delta's UniForm reads as Iceberg), so the format choice matters less than it did two years ago. The architecture choice matters more.

The interview angle

"Design a data platform for a company with 100 TB of event data" is the classic prompt, and the strong answer starts with the arithmetic, not the vendor. One copy vs two (49% of the storage bill), scan-based vs capacity-based compute (the 65 TiB/month crossover), staleness as a function of the ETL interval (mean = interval/2), and torn reads as a function of rewrite time. The separators: correcting the "10x cheaper object storage" claim with the actual list prices, naming the small-file tax unprompted, and reaching for the warehouse anyway when the data is small and the team is analysts — the lakehouse is the right default for new platforms in 2026, not the right answer for every team.

Takeaways

Honesty note: all prices are published list prices checked December 2026 (AWS S3, Snowflake Service Consumption Table, Google BigQuery pricing; us-east-1/us-central1) and will change — the vendor page is the final word. The TCO and scan-cost figures are arithmetic on those list prices in the companion notebook, not a measured deployment; Parquet compression is modelled at a conservative 5x. The query-time figures cited for point lookups and filtered scans are vendor/analyst-reported, not independently measured. The torn-read probabilities are a toy Poisson model, labelled as such. No excluded-vendor content, per the standing exclusion.

Follow for the next part — Season 3, Part 7 follows a request across 50 services with distributed tracing. More on dev.to: @danielsamfdo.

Companion notebook

lakehouse_tco.ipynb — the runnable tutorial for this post (download, or open it in Colab/Jupyter).

← All posts