$ aws s3 ls s3://lake/raw/

Data Lake

A data lake is a central store that keeps data of any type (database extracts, JSON events, CSV files, logs, images) as files on cheap, scalable storage, usually object storage such as Amazon S3, Azure Data Lake Storage (ADLS) or Google Cloud Storage. Data is loaded first in its raw form and given a structure only when it is read (schema-on-read). That makes ingestion fast and flexible, and makes the lake the natural home for machine learning and large-scale processing.

How data flows through a lake

$ ingest --to s3://lake
Sources, zones and the catalog that holds it together
APP DBCLICKSTREAMPARTNERIMAGES orderseventsCSV dropproduct photos OBJECT STORAGE · s3://lake RAW · bronze orders/*.jsonclicks/*.json.gz partner/*.csvimg/*.jpg as received CATALOG tables, schemas, locations, owners · Glue, Unity, Polaris CLEAN · silver orderstyped, deduped clickssessionized partner_pricesParquet / Iceberg CURATED · gold fct_ordersdim_customer daily_revenuechurn_features BIMLSQL / Trino
  1. Sources of every shape: database extracts, event streams, partner files, images. A warehouse would only take the first one easily.
  2. Everything lands in the raw zone exactly as received. Loading is cheap and never fails on schema, and you can always reprocess from here.
  3. A catalog records what each dataset is, its schema, location and owner. Without it, the lake becomes a data swamp nobody can navigate.
  4. Jobs (Spark, dbt, Flink) produce the clean zone: typed, deduplicated, columnar files.
  5. The curated zone holds business-ready tables for BI, ML and SQL engines. Bronze, silver and gold is the "medallion" naming popularized by Databricks.

Data lake vs data warehouse

Data lake Relational data warehouse
Data types Any: structured, semi-structured, unstructured Structured tables
Schema On read On write
Storage Open files (Parquet, JSON, CSV, images) on object storage Database-managed, often proprietary
Cost per TB Very low Higher
Transactions, updates Not on plain files Yes
Typical users Data engineers, data scientists Analysts, BI users
Typical engines Spark, Trino, Flink, DuckDB The warehouse’s own SQL engine

The building blocks

  • Storage: object storage. HDFS was the original lake storage in the Hadoop era and is now mostly legacy.
  • Ingestion: batch loads, CDC from databases, streams from Kafka. Tools such as Airbyte, Fivetran, Kafka Connect and Spark.
  • File formats: land raw data as received, but store clean data as columnar Parquet, partitioned by something queries filter on (often a date).
  • Catalog: AWS Glue Data Catalog, Hive Metastore, Unity Catalog, Apache Polaris or another Iceberg REST catalog.
  • Processing and query: Spark, Flink, Trino, DuckDB.

Why plain lakes struggle

A lake of plain files has no transactions. Two jobs writing the same folder can corrupt it, readers can see half-written data, updating one customer means rewriting files by hand, and there is no reliable way to roll back a bad load. Thousands of tiny files also make queries slow. Table formats (Apache Iceberg, Delta Lake, Apache Hudi) fix these problems and turn the lake into a lakehouse. In 2026 most new lakes use a table format from day one.

Common mistakes

  • No catalog or ownership: files pile up with unknown meaning. This is the data swamp.
  • Small files: streaming jobs writing a file per second. Compact to 100 MB to 1 GB files.
  • Over-partitioning: partitioning by user ID creates millions of folders. Partition by low-cardinality columns such as date.
  • Storing personal data raw and forever with no retention or deletion process, which breaks GDPR-style deletion requests.
  • Skipping access control because “it’s just files”. Use catalog-level permissions, not bucket-wide keys.

Learning Resources

Books

Articles

Videos