Automatic cleanup keeps realtime view counts accurate
Back to Changelog
The realtime view counter now runs a scheduled cleanup job that prunes sessions older than the active viewing window. This keeps the “current concurrent viewers” number accurate and prevents idle or abandoned sessions from inflating live counts.
Details:
- Hourly rolling window — the cleanup respects a one-hour active-session threshold, matching the heartbeat semantics of the player SDKs.
- Scheduled job — the cleanup runs on a schedule rather than relying on read-time filtering, so query latency is unaffected.
You should see steadier and more accurate live viewer counts in dashboards, particularly after large viewing spikes when many sessions end without an explicit close event.