Skip to content
AI.info

The Pulse

Databricks details shared-storage read replicas for Lakebase

Lakebase read replicas use the primary database's storage rather than a separate copy, Databricks says. The company describes how they scale and sets out their limits in its documentation.

Databricks details shared-storage read replicas for Lakebase

Lakebase Postgres read replicas use the primary database's storage instead of maintaining separate full copies of its data. In a November 26 engineering post, Databricks said the replicas can be ready in seconds, add no storage and scale down when idle.

Read replicas let applications send queries to read-only compute while the primary handles writes. The post also lists dashboards, background jobs and read-only access for AI agents among their uses.

A different replica design

Databricks contrasts that approach with traditional managed Postgres replicas, which it describes as physical clones with their own instances, storage volumes and copies of the data. On Amazon RDS, it says, creating a replica involves taking a snapshot, provisioning an instance and catching up with changes made since the snapshot; the process can take minutes for a small database or hours for a large one.

The company's Lakebase design separates compute from durable storage. The compute layer runs Postgres and executes queries, while the storage layer holds durability and history. Safekeepers receive and replicate the write-ahead log, known as WAL, and pageservers turn it into the pages Postgres reads.

When a Lakebase replica is created, the control plane starts a read-only compute on the branch. It connects to the safekeepers to stream WAL and to the same pageservers as the primary. A replica maintains its own local cache, but that cache holds no durable data.

Scaling and consistency

By default, a replica suspends after 5 minutes without activity and starts again when it receives a query. Each replica has its own autoscaling range, independent of the primary, with compute resized as read load changes.

Databricks says suspended replicas do not have a WAL backlog to replay when they wake because storage continues ingesting the log. Its documentation also describes replicas as asynchronous and eventually consistent as the primary makes updates.

Limits on deployment

The AWS documentation permits up to 6 read replicas per branch, and those replicas count toward a project-wide limit of 20 concurrently active compute instances. The replicas must be in the same region as the project; cross-region read replicas are not supported.

Users can create replicas from a branch's Computes tab in the Lakebase App and configure their autoscaling and scale-to-zero settings. Write operations are not permitted on read-replica connections.

Sources

  1. Original source · Blog post Databricks “Rethinking read replicas for the lakebase architecture” databricks.com

Other pages read

  1. Databricks “Read replicas” docs.databricks.com
  2. Databricks “Manage read replicas” docs.databricks.com

Companies in this story

Related stories

Explore

More articles