Skip to content
BENIBIX Learn

Event Time

Data⚙️ ProcessingEvent Time and Windows

Also known as Event Timestamp, Event-Time Processing

The time it really happened, not the time it came in.

Think of it like

It is like the date on a postcard. It says when it was written, not when it reached you.

Example

A bus loses signal in a tunnel. Its stops are sent ten minutes later but still count in the right minute.

Why it matters

Reports should match when things happened. Grouping by arrival time moves late events into the wrong window.

Definition

Event time is the moment an event really happened, written into the event itself. It can differ a lot from the time the event reaches the system. A phone that is offline may send its events an hour late. A stream that groups by event time puts each event in the right window, even when it comes late. To do that, it needs a watermark.
Event time is when it happened. The watermark says how far the stream is sure it has seen.

Common mistake

Trusting a phone's clock without checks. Some clocks are wrong by hours or set to 1970.

Key takeaways

  1. 1
    Stamped in the event. When it truly happened.
  2. 2
    Can arrive late. Networks and offline devices.
  3. 3
    Needs a watermark. To know when a window is done.

Compare