AlgoViz

Batch or stream processing

easy 26 min

Batch processing collects a finite set of data and handles it all at once.

Where it shows up

The same pattern appears across everyday software.

  • Apache Spark

    One engine for both: batch jobs, and Structured Streaming, which by default runs small batches.

  • Apache Flink

    Built for streams. Its documentation also describes a batch execution mode for bounded jobs, which gives the same final results.

  • Apache Beam

    An open source, unified model: the same pipeline definition for batch and streaming, run by different engines.

  • Hadoop MapReduce

    The classic batch framework: jobs read files, process them in parallel and write files.

  • Payroll

    A typical batch: once a month, complete data, no benefit from being early.

  • Card fraud

    A typical stream: the decision is worth something only while the payment waits. The model behind it is usually trained in batch.