Skip to main content
InterviewHubPRO
Section Overview
Q21

Question 21 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

42%
Apache Spark Big Data (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How does Spark Structured Streaming work (Micro-batch vs Continuous)?

senior Levelapache-sparkAdvanced Internals

In Simple Words: Structured Streaming unifies batch and streaming APIs on top of the Catalyst engine:

  • Micro-Batch Engine (Default): Ingests streaming events, processes them as mini-batches (e.g. every 100ms or 1 second) with end-to-end exactly-once guarantees.
  • Continuous Processing Engine: Sub-millisecond latency using continuous record-by-record processing (with at-least-once guarantees).
  • State is managed reliably using checkpointing and write-ahead logs in object storage (S3/HDFS).