Home▸Data Science▸Stream Windows and Late Events: Tumbling vs Sliding, Watermark Delay and Moving-Average Smoothing (3D)

Stream Windows and Late Events: Tumbling vs Sliding, Watermark Delay and Moving-Average Smoothing (3D)

Watch a Poisson event stream roll along a conveyor timeline and see how a stream processor groups it. Each crate is an event placed at its event time; it flies for its random network delay and lands on arrival, so events arrive out of order. Tumbling windows tile the time axis, sliding windows overlap (an event belongs to W/S of them), and a window fires only when the watermark flag, the clock minus a delay B, passes its end. Events that land after their window has fired turn red and are dropped. Tune window length, slide step, event rate, mean delay, watermark delay, signal period and seed, and read the late share against the closed form (d/W) exp(-B/d)(1 - exp(-W/d)), the Poisson counts, the result latency and the smoothing of the sinusoid by the window mean. Six numerical checks compare the simulated stream with closed forms and with brute-force recomputation.

Data Science3DModerate60 FPS📱 Mobile-adapted🟠 Blender💧 Water⇄ 2D version
Stream Windows and Late Events: Tumbling vs Sliding, Watermark Delay and Moving-Average Smoothing (3D) ↗ Open standalone

Big data isn't only about storing huge volumes — a lot of it never stops moving. Real-time pipelines have to summarise an unbounded stream of events using only a bounded slice of it at a time, which is exactly what a window does. This simulator renders that slice as a glass box riding a conveyor of incoming events: in tumbling mode the box fills from empty to full and then flushes once, discarding everything and starting clean; in sliding mode the box always spans the last window size seconds and re-emits its aggregate every slide step, so overlapping windows share data. A fraction of events are held back before reaching the aggregator to simulate network jitter — if one arrives after its window's watermark has already closed, it is dropped rather than silently corrupting a stale aggregate. Tune window size, slide step and stream rate to see how each reshapes the trade-off between responsiveness, smoothness and data loss.

⚙ Under the hood

Watch a Poisson event stream roll along a conveyor timeline and see how a stream processor groups it. Each crate is an event placed at its event time; it flies for its random network delay and lands on arrival, so events arrive out of order. Tumbling windows tile the time axis, sliding windows overlap (an event belongs to W/S of them), and a window fires only when the watermark flag, the clock minus a delay B, passes its end. Events that land after their window has fired turn red and are dropped. Tune window length, slide step, event rate, mean delay, watermark delay, signal period and seed, and read the late share against the closed form (d/W) exp(-B/d)(1 - exp(-W/d)), the Poisson counts, the result latency and the smoothing of the sinusoid by the window mean. Six numerical checks compare the simulated stream with closed forms and with brute-force recomputation.

Three.jsBig DataStream ProcessingData EngineeringEvent-Time WindowsWatermarkLate EventsTumbling WindowSliding WindowPoisson Process

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)