Skip to content
BENIBIX Learn

Session Window

Data⚙️ ProcessingEvent Time and Windows

Also known as Session Windowing, Gap Window

It stays open while events come. It shuts when they stop for a while.

Think of it like

It is like a phone call. It lasts as long as people keep talking, and it ends after a long quiet.

Example

A shopper browses for 12 minutes, leaves for an hour, then comes back. With a 30-minute gap, that makes two sessions.

Why it matters

It matches how people really use apps. Visits, games and calls all come in bursts.

Definition

A session window groups events that come close together and closes after a gap with no events. Its size is not fixed: a busy user makes a long session, a quick visit makes a short one. Windows are kept per key, such as per user. A 30-minute gap is a common setting for website visits.
The same events, grouped three ways: tumbling, sliding and session windows.

Common mistake

Picking a gap that is too long. Separate visits get joined into one long session.

Key takeaways

  1. 1
    Closes on a gap. No events for a set time.
  2. 2
    No fixed size. Long or short as needed.
  3. 3
    Per key. Each user has their own.