Additional information about window duration, period and sessions
The Window processor allows you to partition streaming data into several types of time windows.: fixed time windows, sliding windows and session windows.
The Window processor starts a new window every period of time.
This window stores in memory records during a certain time (duration) then sends micro-batches of data to the output.
Fixed Time Windows
-
all windows have the same consistent duration and never overlap
-
only one window is stored in memory at a given time
-
one piece of data is captured in one window
These windows are useful if you want to capture all data all the time.
Sliding windows
-
multiple windows can overlap
-
several windows are stored in memory at the same time
-
elements in a data set can be captured in more than one window
These windows are useful for sampling purposes and for taking running averages of data.
Session windows
-
high concentrations of data are grouped into separate windows
-
idle sections of the data stream are filtered out
-
data can be captured in disjoint windows of different sizes
These windows are useful for data that is irregularly distributed with respect to time. For example, a data stream representing user mouse activity may have long periods of idle time interspersed with high concentrations of clicks.