Skip to content
LATEST
Technology

Databricks backs Spark with up to 92% latency claim

The company says Real-Time Mode reduces the case for separate Flink deployments, though its evidence comes from its own benchmark and customer examples.

Databricks backs Spark with up to 92% latency claim

Databricks said on Nov. 14 that Apache Spark’s Real-Time Mode gives streaming workloads millisecond latency, citing a company blog benchmark it summarized as “up to 92% faster than Flink.”

The claim targets a data-infrastructure choice: whether teams need one engine or two. Databricks said Spark recorded 14 ms p99 latency in stateful aggregation, compared with 45 ms for Apache Flink.

“For most teams, Apache Spark™ is the better choice,” Databricks said in the blog post. It said Spark can run batch ETL, SQL analytics, machine-learning workflows and streaming, while Flink is a stream-native system used for specialized event-processing workloads.

The company said its benchmark used customer-derived feature-computation workloads, ran at 10,000 records per second for 30 minutes, and measured Kafka input-to-output latency. P99 latency refers to the threshold under which 99% of measured events complete.

In the Databricks benchmark, stateless transformation latency was 3 ms for both engines. Spark Real-Time Mode recorded 9 ms p99 latency for a stream-static join, while Flink recorded 95 ms, according to the company blog post.

Databricks said the comparison used Spark on Databricks and Flink on AWS Managed Service for Apache Flink 1.18. It also said the published chart compared Spark’s worst run with Flink’s best run, and advised teams to benchmark their own pipelines before choosing.

The broader argument is operational rather than only technical. Spark and Flink are both open-source Apache Software Foundation projects with exactly-once processing, stateful operators and SQL APIs, but Databricks said Spark lets teams use one engine across batch, streaming, SQL and AI data preparation.

Databricks cited MakeMyTrip as a customer example, saying the company considered Flink but chose Spark Real-Time Mode to avoid adding a second engine. Databricks said MakeMyTrip cut P50 latency to 44 ms and reduced P99 latency from more than one minute to about 500 ms.

Flink is not displaced in every use case, according to Databricks. The company said Flink may fit workloads involving very large keyed state, complex event processing, heavy use of event-time timers, or organizations already operating a Flink platform for standalone streams.

Real-Time Mode also has limits. Databricks said it requires update output mode and reads from and writes to Kafka or a row-level foreach sink; it also said stateful operators arrive in open-source Apache Spark 4.3 and are generally available on Databricks today.

More stories

Latest news