What it Takes to Recover a 100 TB Postgres Database in AWS RDS
Recovering a 100 TB Postgres database on AWS RDS is slow or incomplete depending on the failure mode. Snapshot restore plus WAL replay handles logical errors, but copying the snapshot and replaying up to a day of WAL can take hours. Multi-AZ standbys cover AZ and hardware failures but cannot undo bad writes, double instance costs, and may silently drop to asynchronous replication and lag under heavy writes. Neon's alternative is presented: a versioned, log-structured key-value storage layer separated from stateless compute, which allows instant branch-based PITR and storage-level multi-AZ redundancy without a standby replica.
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.
- 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.
- I Dropped a Table in Production—Now What?
Neon mediumAdept
Neon's instant point-in-time recovery creates a new copy-on-write branch at a moment just before a dropped table. That branch is available in about one second regardless of database size, and production keeps running while it is created. Two recovery routes follow from this. One is to pg_dump the table out of the recovered branch and import it into production, which keeps all data written after the drop. The other is to use Branch Restore to swap production onto the recovered branch under the same connection string, which discards post-drop writes. RDS, by contrast, restores a snapshot to a new instance and replays WAL, which can take hours for multi-terabyte databases.
- A Deep Dive Into Neon’s Instant PITR
Neon mediumAdept
Neon's point-in-time restore is instant because its storage is copy-on-write: compute nodes stream WAL to Paxos-replicated safekeepers, and pageservers reconstruct any page at any past LSN from image and delta layers kept in object storage. A restore maps the requested timestamp to an LSN and creates a new branch that references existing layers through GetPage@LSN, so no data is copied. That makes restores take under a second regardless of database size, compared with RDS-style restores that load a snapshot into a new instance and replay WAL, which can take hours for multi-TB databases.
- Our Approach to High Availability
Neon easyNovice
Neon treats high availability as a consequence of separating stateless compute from distributed storage rather than as a paid add-on. Compute failures are handled by automatically restarting Postgres or recreating the VM from a pre-provisioned pool and reattaching the same endpoint, typically within seconds and without changing the connection string. On the storage side, Safekeepers replicate WAL across availability zones, secondary Pageservers keep synchronized copies of project data for failover, and cloud object storage holds the durable primary copy of all data. The same design applies on every plan, including the free tier.