Company
Date Published
Author
Carlota Soto
Word count
1263
Language
English
Hacker News points
None

Summary

Neon's instant restore feature, or PITR, is a unique implementation that gives customers peace of mind by allowing them to recover their entire database instantly to any point in time. This is made possible by Neon's separation of compute and storage architecture, which uses a control plane to manage cloud resources across both layers. The storage system consists of three key components: WAL safekeepers, pageservers, and cloud object storage. Safekeepers capture all data changes and use a Paxos-based consensus mechanism to ensure durability, while pageservers process incoming WAL data and store database pages in a format optimized for fast access. Object storage preserves all history long-term. When a user triggers PITR, Neon creates a new branch of the database at a specific Log Sequence Number (LSN), instantly making the restored state available. This process is instant and requires no data copying, eliminating hours of restore time and expensive compute operations.