Batch & Streaming · Core Concepts

Micro-batch vs true streaming

Mediummicro-batchFlinkSpark Structured Streaminglatency

Interview question

What is micro-batch streaming versus true (continuous) streaming? How do Spark Structured Streaming and Flink compare?

How to answer

The short answer

Micro-batch chops the stream into tiny batches (e.g. every 500ms–few seconds), runs a mini batch job per slice, then repeats. Spark Structured Streaming's classic trigger model works this way.

True / continuous streaming processes each record (or small buffer) through an always-on dataflow graph with fine-grained operators. Apache Flink is the usual example.

Practical differences

  • Latency: Flink can go lower more naturally; Spark SS often second-scale (can do continuous processing in limited cases)
  • API / ecosystem: Spark shines when you already use Spark batch SQL/
  • State & event time: both support windows/watermarks; Flink's streaming semantics are often considered more "native"

Interview tip: "Spark SS = micro-batches over DataFrames. Flink = continuous operators." Pick based on latency needs and team stack, not brand loyalty.