Stream Windows and Late Events: Tumbling vs Sliding, Watermark Delay and Moving-Average Smoothing (2D)
The same stream as a side view of a Blender conveyor: crates at their event times flying their network delay, window bars in lanes under the belt turning amber then green as the watermark flag passes, and the window mean against event time and the late share against the watermark delay drawn below. Same controls and checks as the 3D version.
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.
The same stream as a side view of a Blender conveyor: crates at their event times flying their network delay, window bars in lanes under the belt turning amber then green as the watermark flag passes, and the window mean against event time and the late share against the watermark delay drawn below. Same controls and checks as the 3D version.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install