Stream Processing: Time, Windows & Exactly-Once
7 min read.
Count late, out-of-order events by event time, close one-minute windows with a watermark, and see why a crash double counts unless state and offset are saved together.
Think of it this way: Postcards from a trip arrive at home out of order and some come weeks late. To know which day each was written, read the date on the card, not the day it landed. And at some point you stop waiting for more cards from Tuesday and stick that page in the album, adding a note if a late one turns up.
Phones send "page viewed" events. Count views per minute, two ways: by when each event arrives, and by when it happened.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Event time or processing time?
Sort each statement by the clock it is about.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Event time
Drop items hereProcessing time
Drop items hereQuiz
8 questionsWhat is event time?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.