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 size of five seconds. An event arriving at t=10
will belong to the window starting at t=10
and not to the one ending with t=10
.
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy