...

/

Windowing: Tumbling and Hopping Windows

Windowing: Tumbling and Hopping Windows

Learn about windowing in Kafka Streams using tumbling and hopping windows and suppression.

We'll cover the following...

Windowing in Kafka Streams allow us to group records into time or event-based groups before an aggregation operation. There are four types of windows supported by Kafka Streams:

  • Tumbling window

  • Hopping window

  • Session window

  • Sliding window

Tumbling window

A tumbling window is a time-based, fixed-size window. There are no overlapping events between tumbling windows, meaning every event can belong exactly to one window.

Another important thing to know about tumbling windows is that they have an inclusive start time and an exclusive end time. Consider a window starting at t=5 with a fixed ...