Event Time, Processing Time, and Clock Choice

Place an observation into its intended time interval and explain how delayed delivery changes when results can be computed.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Use the timestamp that matches the question
  2. Completion depends on what might arrive later

Use the timestamp that matches the question

A sensor reading recorded at 09:07 but received at 09:12 belongs to the 09:00–09:10 interval if the question concerns when the reading occurred. A processing-time alarm might instead care about arrivals during 09:10–09:20. Keep both facts when the interpretation matters. An event timestamp has a source, clock convention and validation policy, especially when clocks can disagree.

Completion depends on what might arrive later

A system cannot generally finalize every event-time interval immediately at its boundary when observations can arrive late. It needs a progress estimate, a hard guarantee from the source, or an application rule for revising results. Window definitions specify interval membership. Watermarks communicate which earlier times are expected to be nearly or completely processed under a declared model.[1][2]

References

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