AlgoViz

Stream processing

medium 30 min

Stream processing handles events one after another as they arrive, without waiting for the data to end.

Where it shows up

The same pattern appears across everyday software.

  • Apache Flink

    Its documentation lists fraud detection, anomaly detection and rule-based alerting as typical event-driven applications. State and stream positions are saved in checkpoints.

  • Kafka Streams

    A library inside your own program that reads from and writes to Kafka. Its documentation describes one-record-at-a-time processing and exactly-once semantics within Kafka.

  • Spark Structured Streaming

    By default it runs a series of small batches. Its guide gives end-to-end latencies as low as 100 milliseconds for this mode.

  • Google Cloud Dataflow

    A managed runner for Apache Beam pipelines. It tracks watermarks and treats data that arrives after the watermark has passed the window as late.

  • Apache Storm

    An earlier stream processor. Its documentation offers best effort, at least once, and exactly once through its Trident layer.

  • A shop's live counter

    A design example: orders per minute in a tumbling window, shown on a wall screen, with a nightly query as the official number.