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 · about 17 min to read

Play it as a journeyTutor comes with a plan

Stream Processing

Stream Processing
Stream Processing · Open board

Data Systems track, data-in-motion module. This lesson is about what happens once your data stops arriving as a finished file and starts arriving one event at a time, with no end in sight.

Before you start. The previous lesson, Batch Processing, waited until a whole day’s file sat still on disk, then worked through it once, start to finish: that stillness is what let it sort, join, and stop. Nothing here holds still: the input never ends, so a stream processor has to give you an answer before it has seen everything, and stay honest about how wrong that answer might still turn out to be.

Lesson 20 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

  • 2013: two clocks, and a paper called MillWheel
  • Twelve taps, counted two ways
  • The watermark, replayed
  • The same tunnel, wearing a session’s clothes
  • Message brokers, two families
  • Databases are streams
  • The twelve taps, in full
  • Window shapes
  • Stream joins & exactly-once

Terms it explains: event, event time, processing time, window, watermark, late, session, load balances, fans out, AMQP/JMS brokers, log, log-based brokers, offset, replayable, log compaction, Change Data Capture (CDC), event sourcing, fold, correction, tumbling, hopping, sliding, Stream-stream (window join), Stream-table (enrichment), Table-table, Microbatching, checkpointing, exactly-once, CDC, event time vs processing time, load balancing vs fan-out, log-based broker (Kafka), message broker, microbatch / checkpoint, producer/consumer, straggler, stream-stream / stream-table join.

Lab

A tap from a phone in a tunnel arrives twenty seconds late. How long should the server wait before showing a count?

Drag How long to wait for stragglers and watch Thrown away fall while Seconds waited climbs.

Open The late tap

Related papers

Review Data Systems