Session

How Photon Unlocks New Performance Gains for Streaming

Overview

ExperienceIn Person
TrackData Engineering & Streaming
IndustryEnterprise Technology, Communications, Media & Entertainment, Financial Services
TechnologiesLakeflow
Skill LevelIntermediate
DOWNLOAD SESSION SLIDES

Databricks’ Photon engine has revolutionized Spark execution, delivering state-of-the-art query performance and cost efficiency. While many Structured Streaming workloads already benefit from this vectorized execution engine, a subset of streaming-specific operators has historically relied on the standard JVM execution model, leaving potential optimization on the table. Until now.

 

In this session, we reveal our recent engineering initiatives to expand Photon coverage to these critical streaming operators. We will dive into the technical journey of “Photonizing” these components, detailing the complex engineering challenges we overcame to bring vectorized execution to stateful and streaming-specific logic.

 

Attendees will see side-by-side performance benchmarks demonstrating how these enhancements translate into lower latency, higher throughput, and reduced Total Cost of Ownership (TCO) for streaming pipelines 

Session Speakers

Sagar Mittal

/Software Engineer
Databricks

Siying Dong

/Senior Staff Software Engineer
Databricks

Full Summary

How Photon is closing the performance gap for Spark Structured Streaming

Photon, the native C++ execution engine for Databricks, has already delivered large speedups for many Spark batch operators. Extending those gains to streaming, especially to stateful operators, offers a clear path to lower costs for the many jobs that run on higher trigger intervals. The session explains why streaming ETL is the big opportunity, what already benefits from Photon, and how the team "Photonized" its first stateful operator without rewriting the state store.

FAQ


No. The same Structured Streaming code runs with or without Photon. Supported operators are automatically vectorized. If an operator is not yet supported, the query still runs via the standard JVM execution path.

DropDuplicates is the first. The team is working on additional stateful operators, including aggregations, stream joins, and stateful transformations, along with Photonization of Kafka source, Auto Loader Parquet reads, and popular deserializers.

State management remains in the JVM, which owns RocksDB lifecycle, checkpointing, and metrics. The C++ operator receives a RocksDB handle, performs reads and writes, then returns changelog bytes to the JVM for persistence. Checkpoints stay compatible across Photon and non-Photon runs.

Choose real-time mode for latency-sensitive operational workloads that must act per event. Photon delivers the largest cost wins on scheduled ETL that runs at higher trigger intervals, where throughput and efficiency matter more than single-event latency.

Photon is always on with serverless and Lakeflow Declarative Pipelines. On classic clusters, enable the Photon acceleration option when creating the cluster. Eligible operators then run with Photon automatically.