Technology1 min read

Announcing General Availability of native Lakebase Postgres sink for Spark Structured Streaming

By · Published by Everything Blog

In short

The native integration functions in both micro-batch and Real-Time Mode through a single writeStream call, replacing brittle custom foreach writers. It supports direct endpoint writes as well as tables governed by Unity Catalog, which automatically manages credentials via service principals or the active user. Notably, organizations such as DraftKings are deploying the connector to power real-time risk investigations while cutting administrative overhead.

Key points

  • Low-latency applications can upsert streaming data within hundreds of milliseconds withou…: Low-latency applications can upsert streaming data within hundreds of milliseconds without custom code maintenance.
  • Unity Catalog support simplifies security governance by handling credentials via service…: Unity Catalog support simplifies security governance by handling credentials via service principals or running users.
  • Production teams like DraftKings are utilizing the native sink to streamline real-time ri…: Production teams like DraftKings are utilizing the native sink to streamline real-time risk investigation pipelines.

Sources checked by our analysis pipeline: 1

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…

Technology