[KongchangAI]
· 2 min read· 1,235 words

Read Replicas in Lakehouse Architecture: Rethinking Scaling Strategies

Read Replicas in Lakehouse Architecture: Rethinking Scaling Strategies

Lakebase read replicas are compute entry points, not data synchronization units — copying the OLTP primary-replica model is a scaling trap.

The article argues that in lakebase architecture with separated storage and compute, read replicas shift from "data synchronization units" to "compute entry points," so the traditional OLTP primary-replica mental model cannot be copied directly. Replicas don't copy data but spin up compute to access the same object storage data, with higher cold start and cache warm-up costs; cache consistency also worsens as replicas increase. Three redesign directions are proposed: layer by query characteristics, put elasticity on the compute side, and discuss consistency requirements upfront while accepting eventual consistency.

The Intuition Behind Read Replicas and Its Limits

The concept of "read replicas" became popular because it fits a simple intuition: when the application gets busy, just add more replicas to share the read load. In traditional OLTP databases, this logic works quite well — the primary handles writes, replicas asynchronously replay binlog or WAL, and read pressure is spread horizontally. But when you transplant this thinking directly into lakebase architecture, problems arise.

The core characteristic of lakebase is the separation of storage and compute, with data stored in open table formats on object storage. A read replica here is no longer a "data synchronization unit" but rather more like a "compute entry point." Understanding this difference is the starting point for redesigning scaling strategies.

Why Lakebase Read Replicas Are Not Traditional Standby Databases

The Cost Structure of Data Synchronization Has Changed

In traditional primary-replica architectures, replication is continuous and incremental, with latency measured in milliseconds. In lakebase, however, the data itself is already centralized on object storage. What's called a "replica" typically doesn't copy data at all — it spins up a set of compute resources to access the same underlying data. This means the startup cost of a replica shifts from "catching up on logs" to "launching a compute cluster + building metadata caches," making cold start times inherently longer.

The original article is direct about this: the intuition behind read replicas holds, but the implementation needs reassessment. Treating replicas as cheap stateless workers to scale up and down often leads to pitfalls at the metadata and cache layers.

Cache Consistency Becomes the New Bottleneck

Traditional standby databases have their consistency guaranteed by replication positions, but read replicas must handle cache invalidation themselves. When underlying tables are updated by writers, each read replica's local cache, file listing cache, and statistics may lag behind. The more replicas there are, the greater the overhead of invalidation broadcasts, potentially producing the counterintuitive result that "adding replicas actually makes things slower."

lakebase is an emerging class of data architecture concept, typically referring to systems that store data in open table formats (such as Delta Lake, Iceberg, Hudi) on object storage (S3, OSS, etc.) and provide database-style access through independent query engines (such as Trino, Spark, DuckDB, or specialized SQL engines). Its essence is decoupling the "storage-compute" coupling of traditional databases: object storage handles persistence and sharing, while the compute layer spins up on demand. This aligns with the lakehouse philosophy of Snowflake and Databricks but emphasizes openness more — data files can be read directly by multiple engines without being locked into any vendor's proprietary format. Understanding this is crucial: in lakebase, a "replica" is often just another set of compute processes sharing the same underlying Parquet/ORC files, rather than each holding its own physical copy.

Metadata caching is a key component on the lakebase read path. Before accessing object storage, query engines typically need to read table format metadata (manifests, snapshots, partition statistics, etc.). This metadata is itself stored on object storage, and fetching it remotely on every query is expensive. Therefore, engines cache metadata, file listings, and even column statistics locally or in-process to accelerate query planning. The problem is that when writers commit new snapshots, replica caches don't automatically invalidate — they rely on version number comparison, TTL expiration, or explicit invalidation notifications to refresh. The more replicas there are, the larger the fan-out of invalidation broadcasts, and the harder it becomes to balance cache hit rates against freshness. This is the technical root of what the original article calls "cache consistency becoming the new bottleneck."

Several Directions for Redesigning Read Replicas

Layer by Query Characteristics, Not One-Size-Fits-All

Not all read traffic deserves a dedicated replica. Point lookups, aggregation scans, and BI reports have completely different sensitivities to latency and concurrency. A reasonable approach is to group by query characteristics: let short queries go through high-concurrency lightweight replicas, and heavy scans go through elastic batch processing channels, avoiding the use of a single replica specification to handle all workloads.

Put Elasticity on the Compute Side, Not the Data Side

Lakebase's advantage lies precisely in having only one copy of the data. Scaling should manifest as spinning up compute on demand and releasing it when done, rather than maintaining multiple data replicas long-term. The approach emphasized in the original article can be summarized as: a replica's lifecycle should follow the workload, not the data layout.

Accept Eventual Consistency Read Semantics

If the business can tolerate read latency of seconds to minutes, the design space for read replicas expands considerably. Conversely, if the business requires strong consistency, then read replicas are not the right scaling tool — you should return to optimizing the primary path or introduce a dedicated caching layer. Discussing consistency requirements upfront is more effective than tuning parameters after the fact.

Eventual consistency means that after a write completes, the system does not guarantee that all read nodes immediately see the latest data, but promises that in the absence of new writes, all replicas will eventually converge to the same state after a finite period. The opposite is strong consistency, which requires that any read operation sees the result of the most recent successful write. In lakebase, because read replicas each maintain their own caches and refresh with delays, they naturally fall on the eventual consistency side. Common engineering compromises include session-level guarantees like "read-your-writes" or "monotonic reads" — maintaining consistency within a single client session while allowing brief staleness across sessions. When evaluating read replica solutions, clarifying which level of semantics the business can accept is more decision-relevant than discussing "whether to have replicas" in the abstract.

Implications for Architecture Selection

Read replicas are not a universal key — in lakebase they are more like a component that needs redefinition. When evaluating, three questions are worth asking: Does this read traffic really need independent compute resources? Can the cold start and cache warm-up costs of replicas be absorbed by the business rhythm? Is consistency degradation acceptable?

The original article's core contribution is not in providing standard answers but in pointing out that "copying the OLTP read replica mental model" is the most easily overlooked trap in current lakehouse scaling discussions. For teams migrating from traditional data warehouses to lakebase, this reminder is more valuable than any specific parameter.

One-line Summary

Lakebase read replicas are compute entry points, not data synchronization units — copying the OLTP primary-replica model is a scaling trap.

Paragraph Summary

The article points out that in lakebase architecture, storage and compute are separated, and the nature of read replicas shifts from "data synchronization units" to "compute entry points," so the traditional OLTP primary-replica mental model cannot be copied directly. Replicas don't copy data but spin up compute resources to access the same object storage data, with significantly higher cold start and metadata cache warm-up costs. Meanwhile, cache consistency deteriorates as the number of replicas increases, potentially producing the counterintuitive result that adding replicas makes things slower. The author proposes three redesign directions: layer by query characteristics rather than one-size-fits-all, put elasticity on the compute side rather than the data side, and discuss consistency requirements upfront while accepting eventual consistency semantics. Finally, a three-question framework for architecture selection is provided, emphasizing that "copying the OLTP read replica mental model" is the most easily overlooked trap in lakehouse scaling discussions.

#lakebase#read replicas#lakehouse architecture#cache consistency#eventual consistency#scaling strategy
Share:

Related articles