Skip to content

Data Engineering

Data is almost never produced for the people who need it. Data engineering builds the systems that move, store, and shape it so analysts, ML engineers, and applications can rely on it. This book is for software engineers who know SQL and the basics of system design and want to understand how a modern data platform fits together. It closes by building one demanding pipeline end to end: the pretraining corpus for a language model.

16 sections

Start readingDownload PDFGlossary
  • Place any data system on the lifecycle of generation, ingestion, storage, transformation, and serving, and choose storage by access pattern: row stores for OLTP, column stores for OLAP, open table formats for the lakehouse.
  • Design ELT pipelines that load raw data cheaply and transform it in place with SQL.
  • Build batch and streaming jobs with event time, watermarks, and windows, and state exactly which delivery guarantee a job provides.
  • Make every pipeline idempotent and replayable, with tests, contracts, and backfills that work.
  • Build a deterministic, licensed, deduplicated training corpus and explain every stage of it.

Reading every chapter takes about thirteen to eighteen weeks at eight to ten hours a week.

You should be comfortable writing SQL and know the basics of System Design from Systems Engineering. For the corpus chapter, the hashing and Bloom filters of Programming and Algorithms, the asyncio primer in Programming and Algorithms, and the licensing and PII policies in AI Engineering all help. From here, Systems Engineering covers the messaging and search stack data platforms run on, and AI Engineering and AI Engineering consume the corpus this book builds.

New to these books? How to read these books explains how sections, review questions, and solutions work.

A small Streamflow orders pipeline runs through Chapters 3 and 4, locally on DuckDB with no cloud setup. It uses the same Streamflow platform as Systems Engineering and Software Engineering.

StageFileChapter
Raw to clean (Spark, bronze to silver)spark/orders_bronze_to_silver.py3
Clean to tested marts (dbt, silver to gold)dbt/4
Orchestrate the DAG (Airflow)airflow/streamflow_orders_dag.py4

Solution code for the corpus pipeline lives in course/solutions/python/corpus/, with the interface contracts each section implements under course/contracts/.