Catalogue / neon-2022-storage-architecture

Neon separates Postgres compute from a storage layer it built itself, with a WAL service, page servers and object storage

Neon, 2022. Storage layer of the Neon serverless Postgres service.

Organisation
Neon
Evidence
Reported from production
Source
Architecture decisions in Neon

Neon blog, published 2022-07-08

Records

Decision#d1

Build a storage layer that understands Postgres instead of using a SAN or an off-the-shelf distributed filesystem

Decision#d2

Put the compute-storage boundary at the WAL stream and page reads, aiming for minimal changes to Postgres

Decision#d3

Run the WAL service and the page service as two separate services

Decision#d4

Start with one pageserver per database, each able to hold many databases, and leave sharding for later

Decision#d5

Keep old page versions in the storage system so it replaces backups and the WAL archive

Decision#d6

Store data as immutable files and offload cold parts to cloud object storage

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.