DatabricksCarlota SotoExplainer
Rethinking read replicas for the lakebase architecture
Summary
Traditional managed Postgres read replicas are physical clones of the primary, requiring a snapshot, a new instance with its own storage volume, and WAL replay that takes minutes to hours, adding a full data copy to the bill and running 24/7. The lakebase architecture separates compute from storage, so a read replica is just a read-only compute attached to the same storage as the primary. Creating a lakebase replica takes seconds regardless of database size because no snapshot or volume fill is needed, and it adds no replication work to the primary. A lakebase replica scales to zero when idle, resumes on the next query nearly up to date, and autoscales compute with read load within user-set limits. This makes read replicas lightweight, short-lived, and elastic, finally delivering on the original promise of scaling reads without touching the primary.
Context
Traditional managed Postgres read replicas (e.g., on Amazon RDS) are physical clones of the primary: they require taking a snapshot, provisioning a new instance with its own storage volume, and replaying WAL to catch up, which takes minutes to hours, adds a full copy of the data to the bill, and keeps running 24/7 even when idle.
Approach / What changed
The lakebase architecture separates compute from storage: a read replica is an independent, read-only compute that attaches to the same storage as the primary, initialized from a slim base backup served by the pageserver, streaming WAL from safekeepers rather than from the primary.
Takeaways
A lakebase read replica is a compute-only instance attached to the same storage as the primary, so it adds no storage cost and is ready in seconds regardless of database size.
Lakebase replicas scale to zero when idle and autoscale compute with read load, eliminating the need to overprovision or manually pause replicas.
A lakebase replica streams WAL from safekeepers, not from the primary, so creating or running a replica imposes no replication overhead on the primary.
FAQ
How fast can a lakebase replica be created?
A lakebase replica is ready in seconds regardless of database size because it does not take a snapshot or fill a new volume; it simply starts a new compute that reads from the same shared storage as the primary.
Does a lakebase replica duplicate storage costs?
A lakebase replica adds no storage cost because it shares the primary's storage; you pay only for the compute it uses while it is running, and it can scale to zero when idle.
Does a lakebase replica add load to the primary?
A lakebase replica reads WAL from the safekeepers, not from the primary, so creating or running a replica adds no replication work to the primary.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.