Read Replica
A read replica is a database replica node used to offload read requests; in traditional architectures it stays synchronized by asynchronously replicating the log. In storage-compute separated architectures such as lakebase, read replicas generally do not replicate data but share the underlying object storage data and maintain metadata caches independently, which introduces cache consistency challenges.
Timeline (last 90 days)
The most easily overlooked trap in lakehouse scaling discussions is copying the OLTP read replica mental model.
In lakebase, read replicas typically do not copy data; instead, they copy a set of compute resources to access the same underlying data.
The startup cost of a lakebase read replica includes spinning up the compute cluster and building the metadata cache, so cold-start time is naturally longer than that of a traditional replica catching up on logs.
A lakebase read replica must handle cache invalidation itself; when the underlying table is updated by the writer, each read replica's local cache, file-list cache and statistics may lag.
The more lakebase read replicas there are, the greater the fan-out of cache-invalidation broadcasts, which can lead to the counterintuitive result that "adding replicas makes it slower."
Lakebase read replica cache refresh relies on version-number comparison, TTL expiry, or explicit invalidation notifications.
In lakebase, queries should be grouped by characteristics (point lookups, aggregate scans, BI reports), with short queries going to high-concurrency lightweight replicas and heavy scans going to an elastic batch channel, rather than using a single replica specification to carry all workloads.
If the business requires strong consistency, read replicas are not the right scaling tool; one should instead optimize the primary path or introduce a dedicated caching layer.
When evaluating a lakebase read replica solution, one should first clarify the level of consistency semantics the business can accept, and only then discuss whether to introduce replicas.
A read replica is an asynchronously replicated instance of the primary database that may lag behind the primary due to replication delay, so within the eventual-consistency window a read of a just-written record may return "does not exist".
All Facts (10)
The most easily overlooked trap in lakehouse scaling discussions is copying the OLTP read replica mental model.
50%UnverifiedIn lakebase, read replicas typically do not copy data; instead, they copy a set of compute resources to access the same underlying data.
50%UnverifiedThe startup cost of a lakebase read replica includes spinning up the compute cluster and building the metadata cache, so cold-start time is naturally longer than that of a traditional replica catching up on logs.
50%UnverifiedA lakebase read replica must handle cache invalidation itself; when the underlying table is updated by the writer, each read replica's local cache, file-list cache and statistics may lag.
50%UnverifiedThe more lakebase read replicas there are, the greater the fan-out of cache-invalidation broadcasts, which can lead to the counterintuitive result that "adding replicas makes it slower."
50%UnverifiedLakebase read replica cache refresh relies on version-number comparison, TTL expiry, or explicit invalidation notifications.
50%UnverifiedIn lakebase, queries should be grouped by characteristics (point lookups, aggregate scans, BI reports), with short queries going to high-concurrency lightweight replicas and heavy scans going to an elastic batch channel, rather than using a single replica specification to carry all workloads.
50%UnverifiedIf the business requires strong consistency, read replicas are not the right scaling tool; one should instead optimize the primary path or introduce a dedicated caching layer.
50%UnverifiedWhen evaluating a lakebase read replica solution, one should first clarify the level of consistency semantics the business can accept, and only then discuss whether to introduce replicas.
50%UnverifiedA read replica is an asynchronously replicated instance of the primary database that may lag behind the primary due to replication delay, so within the eventual-consistency window a read of a just-written record may return "does not exist".
50%