Watermarking and Late Data Handling in Spark Structured Streaming
Late events are inevitable in distributed systems — watermarks tell Spark exactly when it is safe to finalize a window without waiting forever
Apr 19, 202627 min read138
Search for a command to run...
Articles tagged with #structured-streaming
Late events are inevitable in distributed systems — watermarks tell Spark exactly when it is safe to finalize a window without waiting forever
Treats streams as unbounded tables — the execution model determines whether your pipeline hits milliseconds or minutes.
mapGroupsWithState gives you a per-key mutable state machine in a streaming pipeline — it is the right tool when windows are not enough
Kafka delivers events, Spark processes them — offset management, schema evolution, and exactly-once delivery determine production reliability