Skip to main content
PreparationZone Logo
PrepZone

Tumbling, Hopping, and Session Windows

Count VaultCommerce orders per five-minute window — tumbling, hopping, and session window semantics.

Pass checkpoint below

Why this matters

  • VaultCommerce counts orders per 5-minute tumbling window for real-time sales dashboard.
  • Session windows group user clicks until 30-minute inactivity gap.
  • Grace period retains window state for late-arriving events.
  • Wrong window type double-counts or splits sessions incorrectly.
Tumbling
0–5 min
5–10 min
Hopping
OverlappingSlide interval
Session
Per user gapDynamic end
Tumbling windows are fixed and non-overlapping. Hopping windows slide. Session windows gap on inactivity.

Window types

Tumbling: fixed, non-overlapping (5-min buckets). Hopping: overlapping with advance interval (1-min advance, 5-min size). Session: dynamic gap-based per key. VaultCommerce GMV dashboard uses tumbling; browse session analytics uses session windows with 30-min gap.

Key points

  • Tumbling window — fixed size, no overlap; e.g. orders per 5 minutes
  • Hopping window — sliding overlap; smoothed moving averages
  • Session window — inactivity gap closes window; per-user sessions
  • Grace period — lateness allowed after window end
  • Suppress — control emit frequency (final results vs updates)

The rest of this guide is part of Pro

Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.

Still to come · 2 sections

  • Grace and suppression
  • VaultCommerce rollout checklist

Test yourself

Answer these before moving on — recall is what makes it stick.