Databricks App Scores Transactions in Milliseconds Using Model Serving and Lakebase
A new Databricks App combines Model Serving with route optimization and Lakebase Postgres to score credit card transactions for fraud in real-time. This integration significantly reduces latency, enabling transaction scoring within tens of milliseconds by optimizing network paths and providing fast online feature lookups. The application is suitable for engineers and architects building low-latency applications, featuring autoscaling Lakebase and efficient connection pooling for stable performance under load.
- →Databricks App for Real-Time Fraud Scoring
- →Real-time Profile Updates in Lakebase
- →Model Serving Route Optimization for Faster Inference
- →Lakebase Autoscaling for Demand Handling
- →Connection Pooling and OAuth Token Rotation for Lakebase
Features (2) ›
- Databricks App for Real-Time Fraud Scoring
A sample Databricks App (FastAPI + React) demonstrates scoring credit card transactions for fraud in real-time. It utilizes Model Serving with route optimization for low-latency inference and Lakebase Postgres for online feature and profile lookups.
- Real-time Profile Updates in Lakebase
Customer profile data, such as daily limits or international transaction toggles, can be updated in Lakebase and become immediately visible to the next transaction. This eliminates the need for redeployment or cache invalidation for profile changes.
Enhancements (3) ›
- Model Serving Route Optimization for Faster Inference
Route optimization shortens the network path between the application and the inference container in Databricks Model Serving. This leads to faster, more direct communication, unlocking higher queries per second and more stable, lower latencies for interactive use cases.
- Lakebase Autoscaling for Demand Handling
Lakebase, a managed Postgres solution, now features autoscaling to handle demand fluctuations. This prevents the database from becoming a bottleneck and ensures stable performance as application load changes.
- Connection Pooling and OAuth Token Rotation for Lakebase
The application employs connection pooling and OAuth token rotation patterns for interacting with Lakebase. This maintains stable latency under load by keeping database connections open and utilizing secure, short-lived tokens for authentication.
Notes (1) ›
- Performance Benchmarks and Deployable Example
The sample app achieved end-to-end response times of 27 ms at p50 and 37 ms at p95 across 5,000 requests, with median Lakebase feature lookups of 8.9 ms. The full application code is available on GitHub for users to deploy and test in their own Databricks workspaces.
https://www.databricks.com/blog/what-happens-milliseconds-after-you-tap-pay
Related releases
- Building an AI-Forward Healthcare Organization on Data and Governance Databricks Blog ·
- Databricks Accelerates Agentic Media Buying with New Reference Implementation Databricks Blog ·
- NBCUniversal Migrates to Databricks Lakehouse for Scalable Analytics Databricks Blog ·
- Databricks SDK for Python v0.123.0: API changes and breaking updates Databricks Python SDK Releases ·
- Databricks Go SDK v0.167.0 Adds Cloud Provider Auth Fields Databricks Go SDK Releases ·
- Databricks SDK Java v0.138.0 Adds Model Provider Config Fields Databricks Java SDK Releases ·