Watermarks and Idle Stream Inputs

Combine source progress across several inputs and choose an explicit policy for sources that temporarily produce nothing.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A watermark describes progress in event time
  2. Silence may require a separate state

A watermark describes progress in event time

A strict source watermark can mean no subsequent event will have timestamp below the announced boundary. A heuristic watermark instead estimates progress, allowing later corrections. A downstream join or window generally needs the minimum of relevant input progress when all may still send older events. Taking a maximum would let one fast input mask an older event still possible on another.

Silence may require a separate state

If one source temporarily sends no events or progress, its old watermark can hold downstream windows open. A system may mark it idle under a policy and define how to handle earlier events if it returns. Idle detection is an operational choice, while the stream’s data contract determines lateness and revisions. Event time gives meaning to the positions. State retention bounds how long old windows may still accept changes.[1][2]

References

  1. Tyler Akidau et al., The Dataflow Model ↩
  2. Apache Beam, Programming Guide ↩