No Data Left Behind: Handling Late Events & Reference Data in Flink
summary
Explains concrete Flink patterns: why temporal join gives time-correct enrichment but still breaks when reference updates arrive late, waits for watermarks and stalls on slow-changing reference feeds; why windowed joins add latency equal to window plus watermark; and how implementing a stateful KeyedProcessFunction with per-key state, timers, TTL and side outputs handles late events, emits initial results fast, then issues corrections for eventual consistency. Shows tradeoffs: latency vs state size, and practical fixes using DataStream APIs.
AI-written summary · about
chapters (9)
- 0:00Introduction to streaming challenges
- 4:50Event time vs processing time
- 10:10Late event handling with watermarks
- 14:50Flink API levels for joins
- 17:23Windowed joins limitations
- 20:39Temporal joins in Flink
- 23:11Handling late events in DataStream API
- 24:12ProcessFunction for flexible joins
- 28:38Choosing the right API
related talks
38mTime-Based Aggregates: The Good, the Bad and the Ugly
31mBlueprints for common stream processing use cases with Flink
45mData Stream Processing Concepts and Implementations
27mData enrichment patterns with Apache Flink
36mJoining Infinity: Windowless Stream Processing with Flink
38mEventually, time will kill your data pipeline
32mStoring State Forever: Why It Can Be Good For Your Analytics
35mFlink's Table & DataStream API: A Perfect Symbiosis
