SELECT ’Hello, World’
Neon is a serverless Postgres service built on separated storage and compute, launching behind a waitlist. Each user gets a containerized Postgres compute node, while data lives in a multi-tenant Rust storage layer: Safekeepers run a consensus protocol and, together with S3, form the system of record, and Pageservers serve pages with low latency as disposable scratch space. Avoiding EBS in favour of local disk for hot data and S3 for cold data cuts the cost of triple-replicated storage and compute. Stateless compute also enables scale-to-zero, roughly 3-second provisioning, and copy-on-write database branching for CI/CD workflows, all released under Apache 2.0.
Related posts
- Architecture decisions in Neon
Neon mediumAdept
Neon built serverless Postgres by separating storage from compute without forking Postgres. Postgres streams WAL over the network to a separate WAL service of safekeeper nodes, which use consensus for durability and to prevent split-brain. Multi-tenant pageservers rebuild any page version on request. All historical page versions are kept in immutable, LSM-inspired files that are compressed and offloaded to object storage like S3, which replaces traditional backups and WAL archives and makes point-in-time recovery and branching cheap.
- Understanding Neon’s object hierarchy
Neon easyNovice
Neon organizes serverless Postgres into projects, branches and compute endpoints, built on a separation of storage and compute that avoids sizing a database upfront. A project is a container per application holding a Postgres cluster (default database "neondb"); branches are copy-on-write, isolated copies of data from the current or a past point in time, with the default cluster represented by the "main" branch. Each branch is reached through a compute endpoint that can be fixed-size or autoscale between a minimum and maximum, letting you cap worst-case spend; at time of writing each branch supports only one endpoint, with read replicas planned to allow more.
- Deep dive into Neon storage engine
Neon hardMaster
Neon's storage engine separates Postgres compute from storage and serves pages through GetPage@LSN, reconstructing any page as of any log sequence number from immutable layer files. WAL streams from Postgres to three Paxos-backed safekeepers, then to pageservers that buffer about 1GB of WAL before writing delta layers, building image layers in the background and uploading everything to S3 or GCS. The design borrows from LSM trees but keeps long-lived history, which enables point-in-time restore, copy-on-write branching and fast serverless cold starts without traditional backups or WAL archiving. Compaction and garbage collection bound read cost and retained history, and cold key ranges settle into image layers only.
- How Neon's lakebase architecture stays resilient to cloud failures
Neon mediumAdept
Neon (and Databricks Lakebase) hardens its serverless Postgres against cloud failures by keeping Postgres compute stateless over zone-redundant storage, so failed computes are replaced instantly without hot standbys or WAL replay. Because agents now start tens of millions of databases daily, the start/suspend path of the control plane is being split into a minimal-dependency data plane controller. Further measures include avoiding cloud provider control planes on the hot path via pre-allocated bare-metal pools and a custom autoscaling virtualization layer, and cell-based regions that limited a May 2026 us-east-1 AZ incident to ~13% of databases. Chaos testing, whole-AZ disconnect simulations targeting under 30s of downtime, and per-database SLIs with 99.99% monthly attainment tracking round out the approach.
- How Cedalio uses Neon for an efficient development workflow
Neon easyNovice
Cedalio, an ESG data verification startup, moved from DynamoDB to Postgres and picked Neon over RDS for a simpler API and console. GitHub Actions creates a Neon database branch and a Fly.io app instance for each PR, then deletes both after merge, and scale-to-zero keeps these temporary environments cheap. A one-database-per-customer design gives tenant isolation. Their backend reads the Postgres WAL, bundles and encrypts operations, stores them optionally on IPFS or Arweave, and commits a hash to a client-owned smart contract for tamper-evident auditing.