# What is Real-Time Mode in Apache Spark?

DevFeed: [What is Real-Time Mode in Apache Spark?](<https://devfeed.tech/articles/what-is-real-time-mode-in-apache-spark-136421.md>)

Original publisher: [Read original article](<https://www.databricks.com/blog/what-is-real-time-mode>)

Author: Databricks Staff

Published: 2026-11-13T07:49:12Z

Content type: article

Language: en

Sources: [Databricks](<https://devfeed.tech/sources/databricks.md>)

Topics: [Apache Spark](<https://devfeed.tech/topics/spark.md>), [streaming data analytics](<https://devfeed.tech/topics/streaming-data-analytics.md>), [real-time](<https://devfeed.tech/topics/real-time.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [Apache Flink](<https://devfeed.tech/topics/apache-flink.md>)

Tags: [17](<https://devfeed.tech/tags/17.md>), [2026](<https://devfeed.tech/tags/2026.md>), [aggregation](<https://devfeed.tech/tags/aggregation.md>), [apache](<https://devfeed.tech/tags/apache.md>), [apache-flink](<https://devfeed.tech/tags/apache-flink.md>), [apache-spark](<https://devfeed.tech/tags/apache-spark.md>), [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [availability](<https://devfeed.tech/tags/availability.md>), [batch](<https://devfeed.tech/tags/batch.md>), [batches](<https://devfeed.tech/tags/batches.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [data-plus-ai-foundations](<https://devfeed.tech/tags/data-plus-ai-foundations.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [spark](<https://devfeed.tech/tags/spark.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [structured](<https://devfeed.tech/tags/structured.md>), [trigger](<https://devfeed.tech/tags/trigger.md>)

## AI overview

Apache Spark Structured Streaming Real-Time Mode processes records continuously through long-running tasks, reducing latency from seconds to milliseconds without changing the query's core code. It is suited to workloads that need sub-second responses; micro-batch or availableNow costs less when seconds or minutes suffice. On Databricks, classic compute requires Runtime 16.4 LTS or later, Photon, autoscaling and spot instances disabled, plus an enablement setting; serverless use is limited to continuous Lakeflow Spark Declarative Pipelines. Capacity must cover concurrently running tasks. Kafka sources and sinks, foreach sinks, and most operators including stateful ones are supported. Delta output requires Kafka followed by a separate micro-batch query. Monitor Real-Time Mode latency metrics rather than batch duration; the end-to-end metric excludes sink write time. Latency varies with workload and capacity. The text says Databricks has GA support, while open-source availability is rolling out; it also notes stateful support arrives in Spark 4.3.

## Source excerpt

Real-Time Mode is a trigger for Apache Spark™ Structured Streaming that processes...