Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

PlanetScale 8 min read Opinion easyNovice

The hidden latency inside your database

Cloud databases on network-attached storage like EBS pay a network round trip on every disk operation, a cost that became the dominant bottleneck once SSDs made disks ~100x faster than spinning drives. PlanetScale Metal runs databases on local NVMe instead, getting durability from a primary plus at least two replicas across availability zones, with each commit acknowledged by one replica before returning to the client. Reads never cross the network and IOPS are uncapped: an i7i with local NVMe (~300,000 IOPS) cost $551/month versus $1,514 for an r7i with a 16,000-IOPS io2 volume. Workloads whose hot data fits in RAM with low write volume may not need it. Signs you do are frequent cache misses, hitting EBS IOPS limits, or low CPU usage with high latency.

Related posts

  • Benchmarking NVMe-backed Managed Postgres: PlanetScale and ClickHouse

    ClickHouse mediumAdept

    On identical AWS r8gd instances with local NVMe and quorum synchronous replication, ClickHouse Managed Postgres outperformed PlanetScale Metal in a pgbench TPC-B-like workload. Throughput was 34% higher at 4 vCPU and 51–54% higher at 16 vCPU on 100 GB and 500 GB datasets, with lower average latency. The gap is attributed to configuration rather than hardware: 2 MB huge pages (about 12% on their own), lz4 WAL compression, and max_wal_size sized to the instance (up to 256 GB) versus PlanetScale's 8 GB with huge pages and WAL compression disabled. The results come from a vendor benchmark, and the authors advise validating with your own workload.

  • Separation of storage and compute without a performance tradeoff

    Neon easyNovice

    Neon's Local File Cache (LFC) sits between Postgres shared buffers and Neon's remote multi-tenant page storage. It uses the Linux page cache for RAM-like latency and can spill to local NVMe, so Neon keeps elastic, decoupled storage while matching local-disk Postgres performance. On a TPCC-like sysbench benchmark at 8CU, a 500GB LFC raised QPS from 12,512 to 17,030 and cut p99 latency from 593ms to 384ms, close to a local-disk setup needing 929GB. Sizing the LFC to the estimated working set (180GB) lost only about 10% of peak QPS.

  • POSETTE Talk Recap - Postgres Isn't Slow. Your Storage Is

    ClickHouse mediumAdept

    PostgreSQL scaling symptoms such as slow UPDATE-heavy ingestion, erratic P95 reads, autovacuum lag, disruptive checkpoints and logical replication lag often share one root cause: storage I/O limits. A pgbench random-UPDATE benchmark on a 3.3-billion-row, 482 GiB table showed local NVMe reaching 16,030 TPS versus 1,734 TPS on baseline 3,000-IOPS gp3 EBS (9.24×), with latency falling from 36.9 ms to 4.0 ms. Latency breakdowns, wait events and CPU profiles show the EBS hosts mostly idle waiting on page reads and WAL fsync. Because instance-store NVMe is ephemeral, the proposed production design relies on quorum synchronous replication (ANY 1 of two standbys across AZs) and continuous WAL-G backups to object storage for durability and point-in-time recovery.

  • Postgres on NVMe: performance and the convergence of transactions and analytics

    ClickHouse mediumAdept

    Running Postgres on local NVMe instead of gp3 EBS gave 9.2× more throughput (16,030 vs 1,734 TPS) and UPDATE latency of 4.0 ms vs 36.9 ms in a pgbench benchmark with a 482 GiB dataset about 30× larger than RAM. Profiling showed EBS backends spending 89% of wall time blocked on I/O. VACUUM ran 2.6× faster on NVMe, while logical decoding gained only 1.7× because it is single-threaded. To offset NVMe's ephemerality, durability moves into Postgres via quorum synchronous replication across AZs plus continuous WAL archival to S3 with WAL-G. Analytics still needs a columnar engine, so the recommended pattern is CDC (PeerDB, or the new WalShadow) into ClickHouse, queried through the pg_clickhouse extension.

  • Benchmarking v5 Droplets: what the numbers say across real workloads

    DigitalOcean mediumAdept

    DigitalOcean's v5 Droplets on 5th Gen AMD EPYC "Turin" outperformed Dedicated Premium Droplets in every workload tested, with both on the same network-attached Block Storage. On the DeathStarBench Media Service microservices app, v5 sustained 1,500 req/s versus 1,000, and at 1,000 req/s it halved median latency (2.24 vs 4.48 ms) while using less CPU. Sysbench CPU stress showed about 35% more throughput across PostgreSQL 18, Percona MySQL 8.4 and MariaDB 12.3. Memory stress showed more than 2x throughput, and general OLTP gains were 17–55% depending on engine, with lower average latency throughout.

The quest for software engineering knowledge.

Look:
Layout: