liveBook · Manning

Batching

As explained in Data Pipelines with Apache Airflow, Second Edition

A batch-oriented data pipeline processes data in discrete scheduled or incrementally scheduled groups rather than continuously.

Batching processes data in discrete, scheduled or incrementally scheduled groups instead of continuously. It suits workflows that collect, transform, or transfer complete time intervals of data. section 1.3.1

An Airflow batch pipeline typically relies on:

  • A DAG defines task order and dependencies, making the workflow easier to understand, debug, rerun, and execute in parallel. section 1.5
  • A schedule determines when each pipeline run occurs, while time intervals let the workflow bucket data into discrete periods. section 1.3.1 section 1.5
  • The DAG processor parses workflow definitions, the scheduler queues eligible tasks, workers execute them, and the API server exposes monitoring. section 1.5

Daily ingestion

A daily data-ingestion workflow can run at a specified time, process the corresponding interval as one unit, and recompute earlier intervals through backfilling after code changes. section 1.3.1

Batching is a poor fit for real-time event handling or streaming workloads. Website click streams can be processed in bulk, but individual clicks should not be handled as continuously arriving events by a batch-oriented workflow. section 1.3.2

How Data Pipelines with Apache Airflow, Second Edition covers it

How deep it goes
Explains schedules, intervals, DAG dependencies, execution components, backfilling, and streaming limitations without detailing implementation code.
Examples
Uses daily ingestion, interval-based data buckets, and bulk website-click processing as concrete batch examples.
What you can do after
Operate/configure recurring data workflows by scheduling interval-based runs, organizing dependent tasks, monitoring execution, and backfilling prior intervals.
How it connects
Connects batching with workflow orchestration, DAGs, scheduling, data intervals, parallelism, backfilling, and streaming pipelines.

Also explained in

Compare how 15 books explain batching →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Pipelines with Apache Airflow, Second Edition. The section links point to the parts of the book it draws on.