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 03 · Data Systems · Data in motion · with code: Python · about 20 min to read

Play it as a journeyTutor comes with a plan

Batch Processing

Batch Processing
Batch Processing · Open board

Data Systems track, opens the data-in-motion module. This lesson is about a program that runs once over a pile of data that already fully exists, and writes out a brand new copy of the answer: no request in, no reply out, only a start and a finish.

Before you start. You need to know what a hash function does. Feed it anything and it gives back a number: feed it the word “the” and it might give back 10. Divide that number by the number of machines and keep the remainder: with 4 machines, 10 divided by 4 leaves 2, so “the” goes to machine 2, and every copy of “the” lands on that same machine, because the number never changes. Partitioning used this to spread a table’s rows across machines. This lesson reuses it to spread words.

Lesson 19 of 24 in Data Systems

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

  • 1964: a memo about garden hose
  • 2004: a pile too big for one pipe
  • The shuffle’s one job
  • 2006: the elephant leaves the building
  • The hot key: when one machine does all the work
  • 2012: Spark answers MapReduce’s own complaint
  • Where batch lives now

Terms it explains: batch job, MapReduce, Map, shuffle, Reduce, reducer, hot key, dataflow engines, reduce-side join, map-side join, bounded, fresh, immutable, batch vs service vs stream, bounded input, dataflow engine (Spark/Flink), distributed filesystem (HDFS), map-side (broadcast hash) join, materialization, RDD / lineage, reduce-side (sort-merge) join, salting, skew, Unix pipe, workflow/DAG.

Related papers

Review Data Systems