Skip to main content
Back to Academy🏛️ 1. Modern Analytical Foundations
5 min read
Try Hands-on Lab
VISUAL LESSON1. Modern Analytical Foundations

Data Warehouse vs. Data Lake vs. Lakehouse Architecture

Clear breakdown comparing Data Warehouses, Data Lakes, and modern Delta Lakehouses, plus ETL vs. ELT pipelines and the Bronze-Silver-Gold Medallion architecture.

Data Warehouse vs Data Lake vs LakehouseETL vs ELT PipelineMedallion Architecture Bronze Silver GoldDelta Lake ACID TransactionsSchema-on-Write vs Schema-on-ReadLakehouse Architecture

Explain Like I'm New: Three Kitchens for Storing Ingredients

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!

Key Beginner Takeaway: A Lakehouse isn't a separate database server you pay rent on—it adds a transaction log (Delta Lake or Iceberg) on top of cheap cloud object storage (S3/ADLS/GCS) so you get Data Warehouse reliability at Data Lake prices.

Side-by-Side Architecture Comparison

CapabilityTraditional Data Warehouse (EDW)Classic Data Lake (Raw S3 / HDFS)Modern Lakehouse (Delta / Iceberg)
Supported DataStructured tables onlyStructured, semi-structured (JSON), unstructured (images)All data types under open formats (Parquet)
Schema StrategySchema-on-Write (rigid upfront DDL)Schema-on-Read (often turns into Data Swamp)Schema Enforcement & Evolution (mergeSchema)
ACID TransactionsYes (full commit/rollback)No (half-written files crash concurrent readers!)Yes (atomic _delta_log JSON commits)
AI / Python AccessSlow ODBC exportsNative distributed file readsNative Spark/Python + low-latency SQL engine
Storage vs ComputeHistorically tightly coupledDecoupledFully decoupled + Serverless caching
Vendor Lock-inHigh (proprietary binary storage)Low (open CSV/Parquet files)Zero lock-in (open Parquet + open log specs)

ETL vs. ELT: Why Pipelines Flipped Order

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!


The Medallion Architecture (Bronze -> Silver -> Gold)

Almost every production Lakehouse organizes tables into three progressive quality tiers:

TierNicknameWhat Lives Here?Transformations AppliedAudience
BronzeRaw LandingExact copy of source JSON, CSV, Kafka events + ingestion timestamp.None (append-only immutable history; preserves original payloads).Data Engineers (debugging & replay).
SilverCleaned & ConformedDeduplicated, typed, NULL-checked, joined enterprise entities.Cast STRING -> DECIMAL, deduplicate with ROW_NUMBER(), apply SCD Type 2.Data Analysts, ML Engineers, Feature Stores.
GoldBusiness Data ProductsStar 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;

How Delta Lake Prevents Corrupt Reads (`_delta_log`)

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).


Common Beginner Mistakes (And How to Fix Them)

  1. Skipping Bronze and transforming in memory before saving: If a transformation bug corrupts numbers, you lost the raw payload forever. Always land Bronze first!
  2. Storing money as `DOUBLE`/`FLOAT` instead of `DECIMAL(18,2)`: Floating-point binary math turns $0.10 + $0.20 into $0.30000000000000004, failing bank audits!
  3. Querying Bronze directly in BI dashboards: Bronze contains duplicates, raw timestamps, and uncleaned nulls. BI tools belong exclusively on Gold.

Quick Cheat Sheet

  1. Warehouse = structured SQL only; Lake = cheap files, no ACID locks; Lakehouse = both combined on open Parquet + _delta_log.
  2. Use ELT (Bronze raw -> Silver cleaned -> Gold business KPIs) so you can always replay fixes cleanly.
  3. ACID commits prevent partial reads, concurrent write corruption, and enable Time Travel debugging.

Comprehension & Architecture Check (3 Questions)

Test your understanding of the concepts covered in this lesson.

1. What primary limitation of traditional second-generation Data Lakes does the Lakehouse architecture resolve?
2. Why should beginners check a table's grain before writing a JOIN?
3. Which Medallion layer is meant to store clean, deduplicated, standardized records?
Practice What You Learned

EX-1: Delta Lake DDL & Partitioning Strategy

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.

Solve Challenge