NEW
The timestamp embedded in data indicating when the event actually occurred at the source.
DESCRIPTION
Event time captures when an event happened in the real world, as encoded in the event’s timestamp. It is central to accurate temporal analytics, especially with out-of-order arrivals and variable network delays. Systems that support event-time semantics use watermarks and windowing to compute correct results despite disorder. Event time differs from processing time and ingestion time, which reflect system observation times. Choosing event time yields more accurate aggregations and joins across distributed sources.
ALTERNATIVE DEFINITIONS
Google Cloud
Event time is the time when an event actually occurred, as recorded in the data itself.
Highlights the timestamp embedded in the data as the authoritative time.
Apache Flink
Event Time is the time that each individual event occurred, as given by a timestamp in the event.
Defines event time in Flink’s time model using event-embedded timestamps.
Apache Spark
Event-time is the time when events actually occurred, and it is typically embedded within the records.
Ties event time to watermarks for handling late data in Spark.
RELATED TERMS
Watermark Windowing Late Data Timestamps Out-of-Order Events Allowed Lateness Triggers Session Window
COMPETING TERMS
Processing Time Ingestion Time
KNOWLEDGE AREAS
Real-time & Streaming Data Data Engineering Data Science
TARGET AUDIENCE
Data Engineer Data Scientist MLOps Engineer Software Developer
EXTERNAL SOURCES
- Wikipedia - Stream processing
- Google Cloud - Event time and watermarks
- Apache Flink - Event time model
- Apache Spark - Event time in Spark
TOP QUESTIONS
Why choose Event Time over Processing Time?
Event time reflects when things actually happened, yielding correct aggregations despite network delays and out-of-order arrivals.
Category: Relevancy
How is Event Time extracted?
Parse timestamps from record payloads or metadata and assign them within the stream processing framework.
Category: Implementation
What happens when Event Time is missing?
Fallbacks include ingestion time or processing time, but accuracy may degrade for time-based analytics.
Category: Risks
How do Watermarks relate to Event Time?
Watermarks track progress in event time, enabling window emission and late data handling.
Category: Concepts
What are common mistakes with Event Time?
Using system clocks instead of embedded timestamps and ignoring time zone normalization can skew results.
Category: Mistakes
How does clock skew affect Event Time?
Skewed source clocks cause misordered timestamps; mitigate with synchronization and lateness allowances.
Category: Risks
Which windows depend on Event Time?
Tumbling, sliding, and session windows can be computed on event-time for accuracy.
Category: Concepts
How do I test Event Time correctness?
Inject out-of-order events and verify window results with controlled watermarks and lateness thresholds.
Category: Testing
What is a hot topic around Event Time?
Unified batch/stream semantics leveraging event-time across lakehouse and streaming engines.
Category: Topic