Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Portfolio Projects · Build It Yourself · about 17 min to read

Play it as a journeyTutor comes with a plan

P5: A pipeline from raw to dashboard

Batch Processing
Batch Processing · Open board

The board for batch work: read a big pile of data, run a job over it, write a new pile. This project is eight such jobs in a fixed order, ending in a page a stranger can open.

Before you start. From raw to trusted: ETL, ELT and the data pipeline gave you ELT, the DAG (tasks that wait for the tasks they need) and the data test (a query that returns bad rows). Batch Processing gave you the batch job you can run again when it breaks. A repo a stranger can judge in two minutes gave you what a stranger needs to see in a repo before they trust it. This project puts all three into one working repo.

Lesson 12 of 19 in Portfolio Projects

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • April 2013: a number nobody could trace
  • The raw layer: copy first, change nothing
  • The staging layer: keep countries, drop totals
  • The gate: a test that stops the run
  • The fact table: one row is one country in one year
  • Tolerance: my own test failed first
  • The mart: the table the dashboard reads
  • Orchestration: the order is written down
  • What each part does
  • Stop or quarantine
  • Running it every day
  • What goes in the repo
  • The code

Terms it explains: raw layer, staging layer, gate, fact table, tolerance, mart, Orchestration, idempotent, freshness test, volume test, batch vs service vs stream, bounded input, dataflow engine (Spark/Flink), distributed filesystem (HDFS), map-side (broadcast hash) join, MapReduce, materialization, RDD / lineage, reduce-side (sort-merge) join, salting, shuffle, skew, Unix pipe, workflow/DAG.

Related papers

Review Portfolio Projects