You want to group user clicks into visits with gaps of inactivity. Which window fits?
Why C is the answer
A session window
Session windows close after a gap in activity.
In detail
- Session windows close after a gap of inactivity.
- Each user has their own sessions.
Use case
An illustrative scenario, not a real incident.
A site groups each user's clicks into visits, and a 30-minute gap ends one.
See it in different ways
flowchart TD A["Windowing"] --> B["Fixed: equal, separate blocks"] A --> C["Sliding: overlapping blocks"] A --> D["Session: activity with gaps"]
mindmap
root((Windows))
Fixed
Equal blocks, no overlap
Sliding
Overlap, moving average
Session
Gaps of inactivity
Global
One window for everythingstateDiagram-v2 state "Active" as s0 state "Closed" as s1 [*] --> s0 s0 --> s0: another click s0 --> s1: gap passes s1 --> [*]
Key point: Session windows end after a gap.
Why the other options are wrong
- A. A sliding window
- Sliding windows ignore gaps.
- B. A daily batch
- A daily batch ignores gaps.
- D. A fixed window
- Fixed windows ignore gaps.

