Tensorum

Stream Processing & Aggregation

Computing answers continuously over unbounded event streams.

Distributed SystemsAdvanced6 hrs4 key ideas · 5 applied designs
0%
your progress

Overview

Computing answers continuously over unbounded event streams.

Key ideas

  • Event time ≠ processing time; watermarks declare when a window is probably complete.
  • Tumbling, sliding and session windows answer different questions.
  • Approximate structures (count-min sketch, HyperLogLog) trade small error for huge memory savings.
  • Pre-aggregate at the edge, then merge — never ship every event to one node.

Trade-offs

  • Waiting longer for late data improves accuracy but delays results.
  • Exact distinct counts at scale are expensive; approximations are usually acceptable.

In the real world

Kafka StreamsApache FlinkDruid / Pinot for real-time OLAP

Keywords

WatermarksWindowsCount-min sketch