Striim 3.9.4 / 3.9.5 documentation

Bounding data in batches by session timeout

Session windows bound events based on gaps in the data flow, that is, when no new event has been received for a specified period of time. For example, the following window would emit a set of events every time a minute passes between one event and the next. 

TQL:

CREATE SESSION WINDOW MySessionWindow 
OVER MyStream
IDLE TIMEOUT 1 MINUTES;

UI:

  • Mode: Advanced

    • Timeout: 1 minute

Each set could contain any number of events, accumulated over any length of time, and the gap between the last event in one session and the first event in the next session could be of any duration of a minute or longer.

If a session window is partitioned, the id timeout will be applied separately to each value of the field it is partitioned by, and each set emitted will contain only events with that value. The partitioning field might be a session ID or a user ID.