Reading directoryTime & access

Educational reading

When it happened. When it arrived.

An event can occur before a system receives its message. Those two moments answer different questions about the same event.

Event occursMessage travelsSystem receives

Two moments, one event

Event time describes when something happened, as recorded by its source. Arrival time describes when its message reaches an input system. Processing time concerns observation or handling by the processing system. A network delay can separate these moments.

Grouping data by event time can preserve the intended period of an observation, but messages may arrive out of order. Grouping by arrival time instead describes the flow into the receiving system. Neither choice should be left implicit.

The delayed reading

Hypothetical example: a temperature logger records a reading shortly before noon. Its connection pauses, so the message arrives after noon. A report about conditions before noon and a report about messages received after noon can correctly place that same message in different groups.

If the report heading simply says “noon readings,” the reader cannot tell which rule was used. A clear label distinguishes the observation period from the receipt period and explains how delayed messages are treated.

Deciding when to close a window

Streaming systems need rules for making progress while more messages may still arrive. A watermark expresses progress in event time under the system’s assumptions. It is not proof that every possible earlier message has arrived.

Waiting longer can admit more delayed data but postpones a result. Publishing sooner requires a policy for later arrivals, such as correction, exclusion or separate reporting. Ask whether a time-based result is provisional, how lateness is defined and what happens to an observation that misses the chosen boundary.

Further reading: Microsoft: time handling in stream analytics. External reference.

General educational information. The hypothetical example does not describe company activity.