Neon Blog· Carlota Soto·· 28d ago
Neon Explains Why 99.99999% of Lakebase Reads Avoid Object Storage
Lakebase Postgres is built on object storage, but 99.99999% of reads never touch it
Key Takeaway
Neon says Lakebase Postgres checks the compute node’s local cache first, then pageserver local NVMe, reaching object storage only when the data is absent from both.
Why It Matters
Neon uses production read statistics to show how Lakebase’s tiered caches keep object storage off the query path while supporting stateless compute.
Technical Breakdown · Distilled from the original source
Production sample and cold reads
- In a sample of Neon's production fleet, compute-local caches served about 1.1 billion page accesses per second (99.46%), and pageserver-local NVMe served about 6 million reads per second (0.54%). Object storage handled about 39 requests per second, or roughly one per 28 million page accesses.
- Object storage reads typically occur when a branch or restore targets an older point in time, or when a project wakes after weeks of inactivity. Fetched layer files are cached on pageserver NVMe, and returned pages enter the compute cache, so subsequent reads of the same data can stay local.
Reconstructing pages at a log position
- On a compute cache miss,
GetPage@LSNasks the pageserver for a specific page as it existed at the requested log sequence number (LSN). Image layers hold page snapshots for a key range at one LSN, while delta layers hold WAL records for a key range across an LSN interval. - The pageserver walks backward through the layers from the requested LSN, collecting the page's deltas until it finds an image, then replays those deltas on top of it. In the
us-east-1fleet, the p90 delta count per request stayed below one. The p99 fell to roughly six after Neon began creating base page images more eagerly.
Source: Neon Blog· neon.com
PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.