Search⌘ K

Windowing: Sliding and Session Windows

Explore how sliding and session windows operate within Kafka Streams to enable stateful processing. Understand sliding windows with fixed sizes based on event timestamps and session windows defined by inactivity gaps, and learn to apply them for aggregating real-time event data.

We'll cover the following...

Sliding windows

Sliding windows are also time-based windows. Like tumbling and hopping windows, they have a fixed size, but unlike them, they are not epoch-aligned. Instead, their boundaries are defined by the timestamp of incoming events. Additionally, their boundaries are inclusive both at the start and the end.

As the window is sliding over the input stream, a new window is created for each record that enters the sliding window and for each ...