internalsGet Pro

Module 10 · Lesson 4 of 13Pro

Watermarks: deciding when late events stop counting

Level
Intermediate
Topic
Stream processing with Flink
Reading time
17 min

When you finish this page you can

  1. Work out a job’s watermark from the clicks it has seen and say when a given window closes.
  2. Choose an out-of-orderness bound from how late real events arrive and what the result’s reader can wait for.
  3. Explain why one quiet Kafka partition can stop every window in a job, and how source idleness fixes it.
  4. Pick what happens to an event that arrives after its window closed: drop it, reopen the window, or send it to a side output.

Builds on 2 lessons

Start with lesson 216 min
  1. Event time vs processing time16 min
  2. Windows: tumbling, sliding and session17 min

A dashboard frozen at 01:39:50

is an online store in India. Its apps send about 200 million click events a day into the Kafka topic kartly.clicks. Since Monday 13 December 2027, a job called live-dashboard reads that topic. It counts product views and add-to-carts per product in 10-second windows and writes the counts to ClickHouse, where merchandisers watch the live dashboard. Meera, a data engineer, runs it.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan