Session

Evolving Apache Spark Structured Streaming in Open Source: A Year in Review and the Road Ahead!

Overview

ExperienceIn Person
TrackData Engineering & Streaming
IndustryEnterprise Technology, Communications, Media & Entertainment, Travel & Hospitality
TechnologiesLakeflow
Skill LevelIntermediate

Apache Spark Structured Streaming has quickly become the foundational open-source technology for powering mission-critical streaming ingestion and ETL pipelines worldwide. The Spark 4.1 release introduces powerful updates, most notably a new Real-Time Mode that enables operational pipelines to process data with latencies in milliseconds, all within the Spark ecosystem. Stateful transformations have been significantly bolstered through TransformWithState and stream-stream join enhancements, offering broader coverage and higher performance. Furthermore, robust improvements—such as revamped locking and integrity verification—provide improved stability for stateful queries. Looking ahead to Spark 4.2, the roadmap includes state repartitioning, query evolution, hybrid sources, and other enhancements, further establishing Spark as the gold standard for all streaming workloads. Join us to explore these recent advancements and the exciting future of open-source Structured Streaming!

Session Speakers

Speaker placeholderIMAGE COMING SOON

Anish Shrigondekar

/Software Engineer
Databricks

Speaker placeholderIMAGE COMING SOON

Jerry Peng

/Staff Software Engineer
Databricks

Full Summary

A year of structured streaming: Real-time mode, smarter state, and the road to declarative pipelines

Apache Spark Structured Streaming underpins millions of production workloads, and the last year delivered some of its most impactful upgrades. The conversation reviews what landed in Spark 4.1 and 4.2, what is targeted for 4.3, and where Databricks is extending capabilities, with a clear push toward Lakeflow Declarative Pipelines as the preferred way to manage streaming at scale. Teams looking to orchestrate these pipelines end to end can explore how Lakeflow Jobs fits into the broader data engineering platform.

FAQ


No. Real-time mode is enabled by a configuration that swaps the trigger and uses the same DataFrame and SQL APIs. It is not a separate engine, so most existing queries can opt in with a one-line change.

Stateful operator support for real-time mode is targeted for Spark 4.3. Stateless real-time mode shipped in 4.1 for Scala, and PySpark support arrived in 4.2.

Transform with state is a more ergonomic API for arbitrary stateful processing. It supports explicit state variables, built-in fault tolerance, PySpark and Spark Connect, a dedicated testing harness, and live state inspection, and it is positioned as the modern replacement.

Time travel requires end-to-end DAG awareness so rollbacks on an upstream flow can cascade correctly through downstream tables with exactly-once semantics. Lakeflow Jobs do not expose the full dependency graph, which is why the feature is managed within Lakeflow Declarative Pipelines.

Yes. Databricks supports importing an existing checkpoint into a pipeline and adopting existing Unity Catalog managed tables through a table property. Migration avoids cloning data or rewriting queries.