The late tap
A tap from a phone in a tunnel arrives twenty seconds late. How long should the server wait before showing a count, and what does each extra second buy?
Phones send taps, and each tap carries the second it happened. Phone B goes into a tunnel, so its taps arrive long after the rest. The server counts taps in windows and must decide when a window is finished. Wait longer and fewer taps are thrown away, but every number reaches the screen later.
Included with a plan
This lab 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.
the lesson Stream Processing
The whole idea this lab came from, told start to finish.
on the path Module 3 of 3 in Data Systems: Data in motion
The lessons, boards and videos around this lab, in reading order.
see also The Dataflow Model: A Practical Approach to Balancing Correctness, Latency, and Cost in Massive-Scale, Unbounded, Out-of-Order Data Processing in Papers.