internalsGet Pro

Module 10 · Lesson 3 of 13Pro

Windows: tumbling, sliding and session

Level
Intermediate
Topic
Stream processing with Flink
Reading time
17 min

When you finish this page you can

  1. Pick a tumbling, sliding, session or cumulative window from the question a team asks of a stream.
  2. Write each one as a Flink SQL window table-valued function and read the window_start and window_end it adds.
  3. Work out how many windows one event joins, how many rows a window emits and how much state it holds.
  4. Explain how Flink merges session windows, and why a session’s window_end is not its last click.

Builds on 3 lessons

Start with lesson 114 min
  1. Stream processing: computing on data in motion14 min
  2. Event time vs processing time16 min
  3. Sessionization: grouping events into visits with SQL17 min

Three teams ask three questions of one stream

is an online store in India. Its apps send about 200 million a day to the Kafka topic kartly.clicks. Meera, a data engineer, runs the job live-dashboard, which counts product views and add-to-carts per product for the festival dashboard.

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