Databricks has moved its Apache Spark Structured Streaming real-time mode out of preview, bringing true millisecond-level latency to the platform. This advancement aims to consolidate real-time data processing needs onto a single engine, ending the era of maintaining separate, specialized systems like Apache Flink alongside Spark.
For years, organizations have relied on Spark Structured Streaming for demanding workloads. However, ultra-low latency applications often necessitated the use of additional engines, leading to duplicated code, governance complexities, and increased operational overhead. Databricks' Real-Time Mode, now generally available, promises to resolve this by delivering sub-100ms processing speeds directly within familiar Spark APIs.
This architectural shift is driven by three core innovations: continuous data flow, which processes data as it arrives rather than in batches; pipeline scheduling, allowing stages to run concurrently; and streaming shuffle, which bypasses traditional disk I/O bottlenecks. These changes transform Spark into a high-performance engine capable of powering time-critical applications.
Real-World Impact and Use Cases
Industry giants are already seeing tangible benefits. Coinbase reports an 80%+ reduction in end-to-end latency, achieving sub-100ms P99s for fraud detection and risk management. DraftKings is using the mode for real-time feature computation in fraud detection models for live sports betting, achieving previously impossible ultra-low latencies.
MakeMyTrip leverages Real-Time Mode for personalized search experiences, delivering sub-50ms P50 latencies and a 7% click-through rate uplift. The company also highlights its ability to unify data operations, handling everything from ETL to low-latency pipelines within Spark.