Real-Time Mode in Apache Spark™
Process data in milliseconds, up to 100X faster than Spark micro-batch without a second engine

Millisecond streaming, now generally available in Spark Declarative Pipelines
Real-Time Mode (RTM) delivers up to 100x lower latency than Spark micro-batch mode for operational workloads, removing the need for separate engines like Apache Flink. RTM processes events as they arrive, with end-to-end latency as low as 5ms. It’s generally available in Structured Streaming and in Apache Spark™ Declarative Pipelines, where it runs on serverless compute with versionless upgrades, automated failure recovery and low-to-zero downtime maintenance.
Unlock operational workloads with a unified execution engine

Minimize logic drift and codebase duplication
Use the same Spark API for large-scale batch training and ultra-low latency real-time inference. RTM enables seamless scalability, allowing you to shift pipelines from hourly batches to continuous streaming with a single configuration change, removing the need for complex dual-engine architectures.

Process events up to 92% faster than Flink
In benchmarks based on customer feature-computation workloads, RTM processed events up to 92% faster than Flink. Concurrent stage scheduling and streaming shuffles let RTM achieve strict P99 latencies between 40 ms and 300 ms across demanding operational workloads, such as live fraud detection and real-time personalization.. See the benchmarks.

Deliver up to 100x lower latency than micro-batch
Shift from minute-level ETL to millisecond-level operational streaming with a single-line config change. For supported workloads, RTM delivers up to 100x lower latency than standard micro-batch enabling you to power applications within the same Spark ecosystem.
Learn more about Real-Time Mode
Discover more
Explore other integrated, intelligent offerings on the Databricks Platform.Zerobus Ingest
Push event data directly to your lakehouse in near real time. Direct-write API reduces your operational burden with high throughput and performance at scale.
Apache Spark™ Declarative Pipelines
Simplify batch and streaming ETL with automated data quality, change data capture (CDC), data ingestion, transformation and unified governance.
Unity Catalog
Seamlessly govern all your data assets with the industry’s only unified and open governance solution for data and AI, built into the Databricks Data + AI Platform.
Genie Code
Build and maintain data pipelines with agentic AI that understands your data.
Take the next step
Real-Time Mode (RTM) FAQ
Real-Time Mode is an evolution of Apache Spark Structured Streaming that delivers 100X lower latency than Spark micro-batch execution..
By utilizing pipeline scheduling to run query stages simultaneously and streaming shuffles to pass data immediately between tasks, it eliminates latency bottlenecks.
This architecture delivers up to 100x lower latency than Spark Micro-batch Mode for supported operational streaming workloads, bringing processing down from seconds to milliseconds, with end-to-end latency as low as 5 milliseconds.
Ready to become a data + AI company?
Take the first steps in your transformation