Leanpub Header

Skip to main content

Topics

Data Engineering

From pipelines and warehouses to lakehouses and stream processing, data engineering as told through the free samples of the Leanpub books about building data platforms.

Created from the free samples of 7 Leanpub books and the descriptions and tables of contents of 16 more, with every source cited.

Data engineering is the work of moving data from the systems that produce it to the places where it is analysed, and of keeping it correct on the way. Its products are pipelines, warehouses and the platforms around them. One of the sources puts the need plainly: source systems are built for writing, they store data in forms that suit transactions and not analysis, and they produce duplicates, nulls and inconsistent formats that would silently corrupt anything built on top of them, so something has to turn raw operational data into a clean and consistent form.[1] The same book calls that work infrastructure, invisible when it works and catastrophic when it does not.[1]

The field today is organised around a few settled ideas and a great many tools. The settled ideas are the separation of analytical from operational databases, columnar storage, dimensional modelling and the pipeline that extracts, loads and transforms. The tools change faster: cloud warehouses, open table formats on object storage, stream processors, orchestrators, and single-machine engines that now do work which once needed a cluster. Several of the books here are about one tool each, and most of them were published or revised in 2026.

This article covers the history of analytical data systems, warehouses, lakes and lakehouses, data modelling, pipelines and their orchestration, batch and stream processing, analytical databases and their cost, governance, the use of language models in pipelines, and the interview books written for data engineers. Its sources are the free samples of 7 Leanpub books and the public descriptions and tables of contents of 16 more. The pool is a thin one: most of the books on the subject offer no sample, and the article says so wherever a book is cited only from its description.

Where to start

A reader with no background in the field has two starting points. Practical Data Engineering (2026) is a project book: over fifteen chapters the reader builds one pipeline that ingests from APIs and files, loads a DuckDB warehouse, transforms with dbt and runs under Apache Airflow, all on a laptop and with no cloud account. It is written for software engineers moving into data engineering, backend developers and analysts, and it assumes Python.[8] It has no free sample. Data Warehouses & LLMs (2026) is mostly about language models, but its first chapter teaches warehousing from the beginning, and its sample is long enough to read that chapter whole: the history, the difference between transactional and analytical systems, dimensional modelling, and ETL against ELT.[1]

A working developer who needs one tool can go straight to its book. Spark 4.0 from Scratch (2026) teaches PySpark from a first session to joins and aggregations and is open to readers who know only pandas;[13] High-Performance Data Processing with Polars: From Beginner to Advanced (2026) asks for basic Python and no experience of the library;[5] DuckDB and the Rise of Embedded Analytical Databases (2026) expects Python and basic SQL and no knowledge of database internals;[4] and Streaming at Scale (2026) is the source here on stream processing, written for software, data and platform engineers.[2]

The specialist is served by the books that assume the basics. DATABRICKS FOR PRACTITIONERS: Volume 1 (2026) expects working knowledge of PySpark, Spark SQL and Delta Lake,[11] and Operating Petabyte-Scale ClickHouse Clusters (2026) says of itself that it is a production reference and not a tutorial that walks through a first insert.[3] Data Management Engineering (2026) is the map of the whole field for a practitioner who knows one tool well and wants to see how the parts fit,[9] and Cracking the System Design Interview for Data Engineers. (2026) is aimed at senior and staff engineers preparing to design a data platform in front of an interviewer.[17]

History

The sources that tell the history tell it the same way. Businesses first kept records in flat files, plain rows with no relationships between files, which gave no efficient way to query and no way to enforce integrity. The relational model, published in 1970, put data in tables related by keys and gave it a query language, and relational databases became the standard store for business data through the 1970s and 1980s.[1]

Analysis at first ran on those same operational databases, which worked while data volumes and the number of analytical queries were modest.[4] As both grew, long aggregations locked the tables that everyday transactions needed, and the two workloads proved incompatible on one system.[4] The answer, set out around 1990, was the data warehouse: a separate database built for analytical queries, into which data is copied periodically from the operational systems.[1] Dimensional modelling followed in the same decade as the way to organise the tables inside it.[1]

In the 2000s the volume of web logs and click streams outgrew what relational databases could hold, and data lakes appeared: large stores into which raw data in any format was written, to be processed later. They solved scale and created what came to be called data swamps, lakes full of undocumented data nobody could trust.[1] The cloud warehouses of the following decade separated storage from compute, so that large volumes could be kept cheaply and computing power started only when needed.[1] Processing has its own history alongside storage, from batch jobs to architectures that ran a batch path and a streaming path side by side, and then to the argument that a capable stream processor reading from a replayable log could replace the batch path altogether.[2]

Warehouses, lakes and lakehouses

The distinction the warehouse rests on is between transaction processing and analytical processing, usually abbreviated OLTP and OLAP. A transactional system handles a high volume of small, fast reads and writes of individual rows, holds the current state of the business and is normalised to avoid duplication. An analytical system answers a small number of long-running questions across millions of historical rows.[1] The optimisations that make one fast make the other slow, which is why the same system is not used for both.[1]

Columnar storage

The main optimisation on the analytical side is to store data by column and not by row. A row store keeps all the fields of a record together, which suits fetching or updating one record; a query that sums one column across fifty million orders must still read every row in full. A columnar store keeps each column's values together, reads only the columns a query names and skips the rest.[1] The ClickHouse book works the arithmetic for a table of fifty columns and a query that uses two, and arrives at about a hundredfold reduction in what is read before compression is counted.[3] Compression then adds to the saving, because the values in one column share a type and a pattern.[3]

Two further properties usually accompany columnar storage. Vectorised execution processes arrays of values in batches that fit the processor's cache instead of one row at a time, and writes are appended as immutable sorted parts which a background process merges.[3] The price is paid elsewhere: updating a single row means rewriting a whole part, and transactional guarantees are weaker than in a transactional database.[3]

Lakes and lakehouses

A data lake is storage, typically cloud object storage, that accepts raw data in any format at low cost. It suits machine-learning teams that want unprocessed data and serves analysts poorly, since nothing in it can be relied on or queried as a table.[1] A warehouse enforces a schema and supports access control, audit and lineage, but it handles unstructured data badly and is expensive as a store for large raw volumes.[1]

The lakehouse combines the two. Its key part is the open table format, a transaction layer placed over object storage that provides ACID transactions, schema enforcement and the ability to query data as it stood at an earlier time; Delta Lake, Apache Iceberg and Apache Hudi are the formats named.[1] Spark 4.0 from Scratch gives a chapter to designing Delta Lake and Iceberg tables and to the trade-offs between them,[14] and DATABRICKS FOR PRACTITIONERS: Volume 1 builds a governed lakehouse on one commercial platform layer by layer, with governance and identity placed ahead of pipelines.[11] A common layout within a lakehouse refines data through three layers, called bronze, silver and gold, which both of those books teach.[14][11]

Data modelling

Dimensional modelling separates what happened from its context. A fact table holds one row per measurable event, such as an order or a page view, with the numbers to be analysed and keys pointing to dimension tables; the dimension tables describe the customer, the product, the date. Drawn as a diagram, the fact table sits in the centre with its dimensions around it, which gives the star schema its name.[1] The decision that matters most is the grain, the level of detail one row of the fact table represents, because changing it once data is in production is very costly.[1] A variant normalises the dimensions into further tables, which reduces duplication and adds joins.[1]

Warehouses denormalise on purpose. Duplicated data is cheap to store, and joining five tables for every analytical query is not.[1] Attributes that change over time, such as a customer's country, are handled by one of several conventions: overwriting the old value, which loses history; adding a new row with effective dates, which keeps it; or keeping only the previous value in an extra column.[1] Very large tables are partitioned, almost always by date, and sorted or clustered within partitions so that a query can skip the blocks it does not need.[1]

The dimensional approach is not the only one. Data Management Engineering sets the two classic schools of warehouse design against each other and gives a chapter to notations beyond the entity-relationship diagram, among them multidimensional, fact-based, temporal and NoSQL models, with criteria for choosing.[9] The system-design interview book treats the choice between a star schema and a data vault as one of the trade-offs a senior engineer must be able to defend.[17] Data MODELING MASTERY is a nineteen-page guide that covers dimensional, normalised, denormalised and nested models with examples for one cloud warehouse, alongside techniques for estimating project work.[20]

Pipelines

A pipeline extracts data from source systems, transforms it and loads it into the warehouse. In the older order, ETL, the transformation happens in a separate processing layer before loading, which made sense when warehouse storage was expensive and only clean data was worth keeping there. Its weakness is brittleness: a changed rule means rebuilding and rerunning the pipeline, and a new field in a source can break it.[1] ELT reverses the last two steps. Raw data is loaded first and transformed inside the warehouse with SQL, on the reasoning that cloud storage is cheap and the warehouse's own engine is the most powerful one available.[1] The transformations are then written as version-controlled SQL models, the job dbt does.[1]

Practical Data Engineering follows that architecture step by step, with chapters on ingestion from APIs, files and databases, loading, modelling, dbt and its incremental models and snapshots, and data quality and testing.[8] Its warehouse is DuckDB, an analytical database that runs inside the process that uses it, and the DuckDB book likewise presents ELT pipelines and local processing as one of the uses a data engineer has for it.[4]

Orchestration

Something has to run the steps in order, retry the ones that fail and fill in missed periods. Apache Airflow Cookbook (2026) is a book of recipes for Apache Airflow, an open-source orchestrator, and its description starts from the failure every data team meets: the nightly script that begins to fail at two in the morning, where nobody knows which step went wrong and a rerun double-counts figures already published.[15] Its recipes bind each extraction to its data interval so that a rerun repairs instead of duplicating, schedule pipelines on the arrival of data and not on the clock, and diagnose stuck queues and starved pools from their symptoms.[15] The project book gives two chapters to the same tool, the second on dependencies, retries and backfills, and a later one to observability and monitoring.[8]

Batch processing

Transformation outside the warehouse is done by a processing engine, and the books divide between engines that spread work across a cluster and engines that use one machine well. Apache Spark is the standard distributed engine. Spark 4.0 from Scratch covers its foundations in ten chapters, from file formats to joins and aggregations, and brings partition sizing, shuffles and the reading of query plans into each chapter instead of leaving performance to the end.[13] Spark 4.0 from Scratch continues to performance tuning as a matter of diagnosis, to testing and continuous integration for Spark code, and to deployment on Kubernetes and other cluster managers.[14] Parallel Python with Dask, Second Edition (2026) is about Dask, which scales pandas, NumPy and Xarray code across cores and clusters for readers whose scripts have outgrown one machine's memory; much of it concerns large scientific array data.[21]

On one machine, the Polars book begins from the limits of pandas, which runs on a single thread and converts integer columns to floating point when a value is missing. Polars is written in Rust, stores data in columns, uses every core without the programmer managing threads, and has a query optimiser that examines a whole pipeline before running it and pushes filters down to the data source so that unwanted rows never enter memory.[5] The book is candid about the other side: the library does not suit work that depends on row-by-row Python functions, and it is harder to learn for a programmer used to pandas.[5]

Migrating to Polars 2 (2026) shows what maintaining such a pipeline involves. Its subject is an upgrade that changes results without raising an error: the default engine for lazy queries became the streaming engine, which does not guarantee the order of rows after a join, a grouping or an unpivot, so a job that relied on incidental order can return different output while its tests still pass.[6] The method it teaches is general. Pin both versions, run the same code under each, compare the outputs, and give every dependence on order an explicit sort.[6]

Stream processing

Batch processing produces results only as fresh as the last run. For daily reports that is acceptable; for fraud detection on a card payment, or a sensor that must trigger a shutdown, the value of the information decays within seconds.[2] The first widely adopted answer ran two paths, a batch layer for correctness over history and a speed layer for recent data, and its cost was two codebases on two frameworks that had to be kept producing the same results.[2] The alternative treats all data as a stream: every event is written to a durable, immutable log, typically Apache Kafka, the processing logic runs over it continuously, and history is recomputed by replaying the log through the same code.[2]

That design depends on a stream processor able to do stateful computation with strong guarantees, and Streaming at Scale names the four problems such a processor must solve. Events arrive out of order, so results must be based on when events occurred and not when they arrived. Computations need state, kept consistently across a cluster. The system must recover from a failed node without losing or duplicating data, which requires consistent snapshots taken without stopping the work. And each event should affect the result exactly once, from source to sink.[2]

The book compares the open-source engines on those terms. Spark's Structured Streaming divides the stream into small batches, which adds latency in proportion to the batch interval; Kafka Streams is a library that needs no separate cluster and is tied to Kafka; Apache Flink, the book's subject, processes event by event and takes its snapshots with a checkpointing mechanism.[2] Spark 4.0 from Scratch teaches the micro-batch side, with watermarks, stateful operators and joins between streams.[14] Pipelines built on change data capture, which turn the changes in an operational database into a stream, appear in the Flink book's chapters on connectors and as a system class of their own in the interview book.[2][17]

Analytical databases and their cost

Not every analytical store is a cloud warehouse loaded once a night. Operating Petabyte-Scale ClickHouse Clusters describes a database placed as the main analytical store for real-time work, where data flows in through ingestion pipelines and is queried at once by dashboards and alerting systems, in contrast to the pattern in which raw data lands in object storage, is transformed in batches and reaches the warehouse hourly or daily.[3] The book's warning is that such a system performs very well when configured correctly and very badly when not, the gap being orders of magnitude, and that schema design is the largest single factor.[3]

At the other end of the scale, DuckDB and the Rise of Embedded Analytical Databases argues that a central warehouse brings three costs as an organisation grows: every query makes a network round trip and waits in a queue, all users contend for the same compute, and the bill rises with use.[4] An embedded analytical database runs as a library inside the notebook, application or pipeline that needs it. The book does not present it as a replacement. Warehouses remain the place for shared, governed data and distributed engines for work beyond one machine, and the organisations that do well use a combination.[4]

Cost is a subject of its own. The BigQuery Optimization Playbook (2026) is a short book of thirty-three ranked patterns for one cloud warehouse, whose description observes that spending grows quietly, through a missing partition filter or a query that selects every column, until the mistake is embedded in hundreds of pipelines. The patterns are ordered so that the reader first cuts the bytes scanned, then reduces shuffling, then sizes capacity and sets up governance.[16]

Two books on transactional databases round out the picture from below. Database Engine Level Thinking (2026) explains PostgreSQL's storage, memory and indexes one mechanism at a time and is by its own account an unfinished draft.[23] Production SQLite (2026) makes the case for an in-process database with a single file and a single writer, and gives criteria for when that design fits a workload.[7]

Governance and data management

The wider discipline around the pipelines is data management. Data Management Engineering starts from the observation that practitioners usually know one tool well and rarely see how the tools form one system, so that decisions are correct locally and inconsistent together: a data model with no shared glossary behind it, a pipeline with no lineage, a quality metric tied to no business consequence. It follows the knowledge areas of a professional body's framework, from governance and architecture through integration, master data and metadata to data quality, with one online-store example throughout.[9] Its companion for executives, Data as an Asset (2026), covers the same ground as questions for leadership to put to a technical team before a budget decision.[10]

On a platform, governance takes concrete form as catalogues, privileges, lineage and audit, which the first Databricks volume treats before it reaches ingestion.[11] The Market Is Not a List (2026) applies the same concerns to one kind of data product, a maintained record of companies and contacts, and treats it as a versioned set of claims each with its provenance and date, with entity resolution and quality measurement as engineering problems.[22]

Language models in the pipeline

The newest material in the pool concerns language models. Data Warehouses & LLMs holds that rule-based transformation remains the right choice for most of a production pipeline, since rules are fast, deterministic, auditable and cheap, and that their limit is unstructured input: a free-text complaint, a scanned invoice, a product description in several languages.[1] A model is added for those steps only, and its output is treated like that of any untrusted external system, validated, measured for error and given a fallback path.[1] The same book notes that models write better SQL against a star schema with described columns than against a tangle of normalised tables, which makes modelling and metadata a precondition for asking questions of a warehouse in plain language.[1] Databricks for Practitioners: Volume 2 (2026) covers the model-serving, vector-search and agent features of one lakehouse platform.[12]

Interviews and careers

Three of the books are written for the hiring process, and their contents show what the field expects of its practitioners. The Data Engineering Interview, Unlocked (2026) covers SQL, data modelling, coding in Python and PySpark, Spark, Kafka and streaming, and the main lakehouse and warehouse platforms.[18] Cracking the System Design Interview for Data Engineers. gives one chapter to each class of system a candidate may be asked to design, among them lakehouses, change-data-capture platforms, streaming and batch pipelines, incremental loading and governance, each with the options a senior engineer would weigh and the conditions under which the answer changes.[17] Behavioral Interview Playbook for Senior Data Engineers and Data Architects (2026), by the same author, draws its scenarios from the work itself: a pipeline alert in the night, a failed backfill, a silent schema break, a cloud bill that ran over.[19]

Questions about Data Engineering

Which data engineering book should I start with?

Practical Data Engineering builds one complete pipeline on a laptop and assumes only Python, though it has no free sample.[8] The first chapter of Data Warehouses & LLMs teaches warehousing from the beginning and can be read in full in the sample.[1]

What is the difference between ETL and ELT?

ETL transforms data in a separate processing layer before loading it into the warehouse, and ELT loads raw data first and transforms it inside the warehouse with SQL.[1] ELT became the usual order once cloud warehouses made storage cheap and their own engines powerful.[1]

What is the difference between a data lake, a data warehouse and a lakehouse?

A lake stores raw data in any format cheaply, and a warehouse enforces a schema and is built for SQL analysis.[1] A lakehouse puts a transactional table format over object storage to get the reliability of the second at the cost of the first.[1]

Why do analytical databases store data in columns?

An analytical query usually reads a few columns across very many rows, and a columnar store reads only those columns and skips the rest.[1] Values in one column also compress far better than mixed rows do.[3]

When is stream processing needed instead of batch processing?

It is needed when the value of information decays within seconds, as in fraud detection or equipment monitoring, and a batch run would deliver the answer too late.[2] Daily and monthly reporting tolerates the delay of a batch.[2]

Do I need a cluster to process large data?

Often not. Single-machine engines such as Polars and DuckDB use columnar storage, every processor core and query optimisation to handle analytical work that pandas cannot.[5][4] Distributed engines remain the tool for workloads beyond one machine's capacity.[4]

Sources

Every source is a Leanpub book or course. The note after each says which part of it was read; where no sample was available, only the public description and table of contents were used.

  1. 1.
    Data Warehouses & LLMs, krushal Free sample: a long one, read for chapter 1 (the history of data storage, OLTP and OLAP, core warehouse concepts, dimensional modelling, lakes and lakehouses, ETL and ELT) and the opening of chapter 12 on ETL with language models. 2026. Free sample: PDF
  2. 2.
    Streaming at Scale, Steve Publications: Distributed Stream Processing with Apache Flink Free sample: the introduction, chapter 1 (batch and streaming, the two-path and log-based architectures, the core problems of stream processing, the engines compared) and the start of chapter 2. 2026. Free sample: PDF · EPUB
  3. 3.
    Operating Petabyte-Scale ClickHouse Clusters, Steve Publications: A Production Engineering Guide from Architecture to Operations Free sample: the introduction and chapter 1 on columnar storage, vectorised execution and where the database fits in a data stack. 2026. Free sample: PDF · EPUB
  4. 4.
    DuckDB and the Rise of Embedded Analytical Databases, Steve Publications: A Comprehensive Guide to High-Performance Local Analytics Free sample: the introduction and chapter 1 on the history of analytical workloads and the costs of a central warehouse. 2026. Free sample: PDF · EPUB
  5. 5.
    High-Performance Data Processing with Polars: From Beginner to Advanced, Steve Publications: A Practical Guide to Fast, Scalable, Memory-Efficient Data Analytics in Python Free sample: the introduction (the limits of pandas, what Polars is and where it does not fit) and chapter 1 on installation and a first DataFrame. 2026. Free sample: PDF · EPUB
  6. 6.
    Migrating to Polars 2, Ground Truth Books: What breaks silently between 1.x and 2.0, shown with real runs under both versions Free sample: chapter 1 on the two themes of the release, the change of default engine and stricter implicit behaviour, with captured output under both versions. 2026. Free sample: PDF · EPUB
  7. 7.
    Production SQLite, Steve Publications: Architecting Reliable Data Systems with the World's Most Deployed Database Free sample: the introduction (when an in-process database is the right choice and when it is not) and the start of chapter 1 on its architecture. 2026. Free sample: PDF · EPUB
  8. 8.
    Practical Data Engineering, CAIO INCAU: Pipelines, warehouses, and the modern data stack from scratch No sample: from the description and table of contents. 2026.
  9. 9.
    Data Management Engineering, Andrii Bogdanovych: Architecture, Quality, Implementation No sample: from the description and table of contents. 2026.
  10. 10.
    Data as an Asset, Andrii Bogdanovych: A Data Management Strategy for Executives No sample: from the description and table of contents. 2026.
  11. 11.
    DATABRICKS FOR PRACTITIONERS: Volume 1, Ritesh Modi: The Production Lakehouse Playbook: Platform, Governance, and Data Engineering No sample: from the description, which lists the sixteen chapters. 2026.
  12. 12.
    Databricks for Practitioners: Volume 2, Ritesh Modi: The AI Lakehouse and Agentic Playbook: Analytics, Mosaic AI, Agents, and Lakebase No sample: from the description only. 2026.
  13. 13.
    Spark 4.0 from Scratch, Ritesh Modi: Foundations: From Your First DataFrame to Production-Ready Joins and Aggregations No sample: from the description, which lists the ten chapters. 2026.
  14. 14.
    Spark 4.0 from Scratch, Ritesh Modi: Advanced Processing & Production Mastery No sample: from the description, which lists the chapters. 2026.
  15. 15.
    Apache Airflow Cookbook, GitforGits | Asian Publishing House: Handy solutions to build, containerize and troubleshoot production ETL, ELT, MLOps and AIOps pipelines No sample: from the description and table of contents. 2026.
  16. 16.
    The BigQuery Optimization Playbook, Nitin Gandhi: Patterns and Practices for Cost and Performance (2026 Edition) No sample: from the description and table of contents. 2026.
  17. 17.
    Cracking the System Design Interview for Data Engineers., ALEXEY BANAEV No sample: from the description and table of contents. 2026.
  18. 18.
    The Data Engineering Interview, Unlocked, Pankaj jain, Harendra Singh: Volume 1: Foundations & Platforms No sample: from the description only. 2026.
  19. 19.
    Behavioral Interview Playbook for Senior Data Engineers and Data Architects, ALEXEY BANAEV No sample: from the description and table of contents. 2026.
  20. 20.
    Data MODELING MASTERY, Sudhanshu Jaiswal No sample: from the description and table of contents. 2026.
  21. 21.
    Parallel Python with Dask, Second Edition, GitforGits | Asian Publishing House: Scale pandas, NumPy, and Xarray across cores, clusters, and GPUs for terabyte-scale analytics and machine learning No sample: from the description, which lists the chapters. 2026.
  22. 22.
    The Market Is Not a List, Vineeth Veetil: Building answerable markets from identity, evidence, relationships, and change No sample: from the description and table of contents. 2026.
  23. 23.
    Database Engine Level Thinking, Kareem Ashraf: Building a mental model of PostgreSQL internals — written while learning No sample: from the description and table of contents. 2026.

Further reading

Other books in the library on the same ground, not cited above.

  • Mastering AWS: Advanced Python Engineering, Krzysztof Rybiński Automating one cloud provider's services in Python across a hundred chapters, a handful of them on data lakes, managed ETL, streams and a warehouse. 2026. Free sample: PDF
  • Practical Elasticsearch Query Language, GitforGits | Asian Publishing House: Query, Analyze, Filter, Aggregate, Join, and Search across Billions of Records with ES|QL A guide to the piped query language of Elasticsearch, from a first query to joins across indexes and dashboards. 2026.
  • Deep Analysis with Pandas, Joram Mutenge: Transforming and Visualizing Data for Insights Cleaning, transforming and analysing data with pandas 3, from small datasets to millions of rows. 2026.
  • High-Performance Python for AI & Data Engineering, AhmedAdawy: The Ultimate Loop, Vectorization & Memory Optimization Blueprint A short guide to why Python code runs slowly and how vectorised operations and memory layout speed it up. 2026.
  • Enterprise Development with Raspberry Pi, Sergiy Pylypets Enterprise Java services on Raspberry Pi hardware, with a section on Kafka event streaming and a short PySpark part. 2026. Free sample: PDF

This is an article created from the free samples of 7 Leanpub books and the descriptions and tables of contents of 16 more. We're building these articles to provide you, the Leanpub reader, with a good jumping-off point to discover more Leanpub books that are interesting and relevant to you. We never use material which is paid-only when building these articles: we only use material which is already free on Leanpub. However, Leanpub authors can opt out from inclusion in articles from their book settings page.

Updated November 2026.

In the Leanpub store: 61 books · 1 courses in the Data Engineering category

All topics