PrepCity

Watermarks

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 5 pages · about 5 min

Watermarks

A watermark is the processor’s guess of how far event time has got. It closes windows. The slowest partition sets it, so one quiet partition can freeze the dashboard.

What it is
A stream processor’s running guess of how far event time has got, like “everything before 10:05 is probably here”.
What it is for
A processor can never be sure a window is finished: a late event may still come. The watermark tells it when to stop waiting and publish.
Use it when
In every event-time stream job (Flink, Spark, Beam): you choose how far it trails the newest event, and how long a quiet partition may hold it.

Words you’ll learn

  • Event time
  • Watermark
  • Dashboard
  • Partition
  • Time window
  • Idle timeout
  • Event
  • Late event
  • Allowed lateness
  • Flink

Page by page