Ultra Low Latency Streaming for Real-Time Feature Engineering
Overview
| Experience | In Person |
|---|---|
| Track | Data Engineering & Streaming |
| Industry | Consulting & Services, Retail & Consumer Goods, Financial Services |
| Technologies | Lakeflow, Lakebase |
| Skill Level | Beginner |
| DOWNLOAD SESSION SLIDES | |
Feature freshness is critical for fraud-detection, ad tech, real-time recommendations, dynamic pricing, etc. Historically, ML engineers have had to maintain two separate systems for feature engineering, leveraging Spark and Spark Structure Streaming for batch/near real-time features, while building bespoke pipelines when they needed sub-second feature freshness. In this session, we'll learn about Real-Time Mode in Apache Spark Structured Streaming, the engine behind the Databricks Feature Store, and how companies like DraftKings are using it to power real-time features with millisecond-level freshness. You'll learn how to pair Real-Time Mode with Lakebase to build a state-of-the-art online feature store and leave with a practical blueprint for a unified feature engineering platform that eliminates logic spread across different systems and shifts the focus from infrastructure orchestration to semantic feature modeling.
Session Speakers
Abhay Bothra
/Sr. Staff Software Engineer
Databricks
Jerry Peng
/Staff Software Engineer
Databricks
Full Summary
Ultra-low latency streaming for real-time feature engineering on Databricks
Real-time fraud detection, dynamic pricing, travel delay prediction, and personalization hinge on fresh features computed in milliseconds. When pipelines lag or diverge across batch and streaming stacks, accuracy drops and costs rise. The video outlines how recent streaming advances on the Databricks Platform close the gap between offline training and online serving so teams can run both on one governed engine.
FAQ
No. RTM is enabled by changing the trigger on an existing query. APIs, transformations, and application code stay the same, which is why teams can validate and roll out quickly.
Tumbling windows have fixed boundaries, so a lookup between boundaries returns stale or partial aggregates. Sliding windows with short slides compute many unnecessary windows, slowing queries and overloading the online store. The rolling window operator computes only the current look-back window and expires events as time advances.
Feature pipelines are write-heavy, while Redis and DynamoDB are optimized and priced for read-heavy workloads. The managed Postgres service supports high-throughput writes, uses disaggregated storage and compute, can autoscale to zero, and is governed by Unity Catalog alongside offline tables.
A single declarative feature definition sets up three pipelines: an offline Delta Lake replica for training and backfills, a batch tiling pipeline to the online store, and a continuous RTM-powered pipeline that reads from the streaming source and writes to the store.
Autoscaling for RTM on Lakeflow Declarative Pipelines is on the roadmap, with stateless support in public preview soon and stateful support following next quarter. The native Postgres sink is moving to public preview on Lakeflow Declarative Pipelines, and foreach sink support in Lakeflow Declarative Pipelines is in progress for teams that still need to write to systems like Redis or DynamoDB.