Let's Build PlanetScale from Scratch: Infrastructure
4 hours ago
- #open-source
- #database
- #infrastructure
- The author is building Homescale, a tool for creating writable database instances and point-in-time branches from immutable snapshots without full database copies.
- Homescale uses a Docker-like model with images, containers, and branches, supporting multiple database engines like Postgres.
- It separates storage from compute, enabling branching in the storage layer using copy-on-write (COW) to share unchanged data across branches.
- Ceph provides the underlying block storage with RBD for immutable snapshots and writable COW clones, integrated via Kubernetes and Rook.
- Homescale leverages Kubernetes as a control plane for managing resources like PVCs and VolumeSnapshots, with plans for local and cloud deployments.