Enable real-time feature computation and ingestion in a single streaming pipeline
by Navneeth Nair, David Young and Murali Talluri
Low-latency use cases like fraud detection, live personalization, and real-time feature computation need computed results in a serving-ready OLTP store. Lakebase Postgres is Databricks' fully managed, serverless PostgreSQL database offering, with autoscaling, branching, native Unity Catalog integration, and sub 10ms reads. But writing to it from a streaming pipeline has meant building a custom foreach
writer and handling batching, retries, and upserts yourself, which is complex to get right and hard to keep performant under load.
Today, we are announcing the general availability of the native Lakebase sink for Apache Spark™ Structured Streaming, a connector that writes computed results directly to Lakebase and handles all of that for you. The same connector works in both micro-batch and Real-Time Mode. We show it on a feature pipeline that ingests watch and like events from a video streaming platform, computes each user's recent activity, and upserts one feature row per user into Lakebase in hundreds of milliseconds. You get that performance without building…