Clear breakdown comparing Data Warehouses, Data Lakes, and modern Delta Lakehouses, plus ETL vs. ELT pipelines and the Bronze-Silver-Gold Medallion architecture.
Imagine organizing food for a huge restaurant chain:
1. Data Warehouse (Clean Tupperware Pantry): Every ingredient must be washed, chopped, measured, and labeled *before* it is allowed inside the fridge (Schema-on-Write). Super clean and fast for chefs—but it rejects raw boxes, videos, or sudden recipe changes, and pantry storage is pricey.
2. Data Lake (Walk-In Warehouse Yard): Forklifts dump crates, messy bags, JSON receipts, and raw audio straight onto concrete pallets (Schema-on-Read). Dirt-cheap storage—but without rules, crates rot and vanish, turning into an unusable Data Swamp.
3. Lakehouse (Delta Lake / Apache Iceberg): Combines cheap warehouse-scale storage plus a smart inventory ledger (_delta_log) with ACID locks, version history, and instant SQL speed—one single home for BI dashboards and Machine Learning!
Delta Lake or Iceberg) on top of cheap cloud object storage (S3/ADLS/GCS) so you get Data Warehouse reliability at Data Lake prices.| Capability | Traditional Data Warehouse (EDW) | Classic Data Lake (Raw S3 / HDFS) | Modern Lakehouse (Delta / Iceberg) |
|---|---|---|---|
| Supported Data | Structured tables only | Structured, semi-structured (JSON), unstructured (images) | All data types under open formats (Parquet) |
| Schema Strategy | Schema-on-Write (rigid upfront DDL) | Schema-on-Read (often turns into Data Swamp) | Schema Enforcement & Evolution (mergeSchema) |
| ACID Transactions | Yes (full commit/rollback) | No (half-written files crash concurrent readers!) | Yes (atomic _delta_log JSON commits) |
| AI / Python Access | Slow ODBC exports | Native distributed file reads | Native Spark/Python + low-latency SQL engine |
| Storage vs Compute | Historically tightly coupled | Decoupled | Fully decoupled + Serverless caching |
| Vendor Lock-in | High (proprietary binary storage) | Low (open CSV/Parquet files) | Zero lock-in (open Parquet + open log specs) |
Beginners hear both acronyms constantly:
- ETL (Extract -> Transform -> Load): Classic 2000s pattern. You extracted data from Postgres, used an expensive middle server (Informatica/SSIS) to clean it in flight, then loaded only tiny clean tables into the expensive Data Warehouse.
- ELT (Extract -> Load -> Transform): Modern Lakehouse pattern. Storage on S3/ADLS is ~$20/TB/month! You extract raw files (Fivetran, Airbyte, Kafka), load them straight into Bronze unchanged, and transform them inside scalable cloud SQL/Spark engines afterward.
Why ELT won: If a developer discovers a bug in a revenue formula 6 months later, with ELT you still have the exact untouched Bronze raw history—you just fix the SQL and replay!
Almost every production Lakehouse organizes tables into three progressive quality tiers:
| Tier | Nickname | What Lives Here? | Transformations Applied | Audience |
|---|---|---|---|---|
| Bronze | Raw Landing | Exact copy of source JSON, CSV, Kafka events + ingestion timestamp. | None (append-only immutable history; preserves original payloads). | Data Engineers (debugging & replay). |
| Silver | Cleaned & Conformed | Deduplicated, typed, NULL-checked, joined enterprise entities. | Cast STRING -> DECIMAL, deduplicate with ROW_NUMBER(), apply SCD Type 2. | Data Analysts, ML Engineers, Feature Stores. |
| Gold | Business Data Products | Star Schema Facts & Dimensions + pre-aggregated KPIs. | Business rules, monthly rollups, certified reporting views. | Executives, BI Dashboards (Power BI, Tableau). |
-- Example Silver -> Gold transformation in Delta Lake SQL
CREATE OR REPLACE TABLE gold.daily_store_revenue AS
SELECT
o.order_date,
s.region_name,
COUNT(DISTINCT o.order_id) AS completed_orders,
CAST(SUM(o.net_amount) AS DECIMAL(18, 2)) AS total_revenue_usd
FROM silver.fact_orders o
JOIN silver.dim_stores s ON o.store_id = s.store_id
WHERE o.order_status = 'COMPLETED'
GROUP BY o.order_date, s.region_name;In a raw Data Lake, if a Spark job crashes halfway while overwriting orders/2026-05.parquet, analysts querying that folder read half-written corrupt files or duplicates!
Delta Lake fixes this with an atomic transaction log folder (_delta_log/000001.json):
1. Writers write brand-new Parquet files cleanly in the background.
2. Only once *every* file succeeds does Delta write a tiny commit JSON file listing valid active files (add: part-001.parquet, remove: old-000.parquet).
3. Readers consult _delta_log first—so they either see 100% of the old snapshot or 100% of the new snapshot, never half-baked files! Plus you can query past versions anytime via Time Travel (SELECT * FROM gold.orders VERSION AS OF 12).
$0.10 + $0.20 into $0.30000000000000004, failing bank audits!_delta_log.Bronze raw -> Silver cleaned -> Gold business KPIs) so you can always replay fixes cleanly.Test your understanding of the concepts covered in this lesson.
Global DynaDatum Bank stores account balances at the end of every month for thousands of customers. A junior engineer previously saved these balances as plain text files with no rules, which caused balance numbers to get corrupted and queries to be painfully slow. We need an official Delta Lake table that stores balance dates, money amounts, and currencies accurately. We also want queries to run fast by organizing the files by date, and prevent duplicate balance records for the same account on the same day.