Module 01 · Portfolio Projects · Build It Yourself · about 17 min to read
Continue where you left off ×
P5: A pipeline from raw to dashboard
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.
The idea in 30 seconds
A pipeline is a trail from the raw file to the number on screen, written as code that anyone can run again.
The raw layer is an untouched copy. Staging fixes types and removes rows that are not real countries: 56,269 - 7,963 = 48,306.
A gate is a test that stops the run, so bad data never reaches the dashboard.
A test needs a tolerance when the source rounds its numbers, or it blames good data.
A mart is a small table for one question, and the dashboard only reads marts.
A DAG with tests as tasks gives you orchestration, and tasks that drop and rebuild their tables are safe to rerun.
Read the story
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 plans Already 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.
Review Portfolio Projects
Mark as read Saved in this browser, and to your account when you sign in.