Skip to content
Tech News
← Back to articles

Neki – Sharded Postgres

read original get PostgreSQL: Up and Running (O'Reilly) → more articles
Why This Matters

PlanetScale is extending the horizontal-scaling playbook it built for MySQL (via Vitess-style sharding) to Postgres with Neki, now in platform preview. It targets teams that have maxed out a single Postgres machine but don't want to give up real Postgres semantics, extensions, or their existing drivers and ORMs. That matters because vertical scaling ceilings have been one of Postgres's most persistent pain points as it becomes the default database for new applications.

Key Takeaways
Worth a Look

PostgreSQL: Up and Running (O'Reilly) — If sharded Postgres is on your radar, a solid grounding in Postgres internals, query planning, and administration pays off fast. This O'Reilly guide is a practical desk reference for developers scaling real Postgres workloads across machines.

See PostgreSQL: Up and Running (O'Reilly) on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

Nick Van Wiggeren [@ NickVanWig] | September 10, 2026

Neki is now available in platform preview.

Neki is built from lessons we’ve learned over eight years of running some of the largest sharded MySQL clusters in the world. Thousands of production workloads with millions of queries per second for companies where even a few seconds of downtime is a very public event. We know what it means to power the world’s biggest tier 0 workloads.

When we released PlanetScale Postgres a year and a half ago, we knew we needed to do more. In that time we’ve onboarded several thousands of customers on PlanetScale, some of them rivaling the size of our largest MySQL customers. Time and time again, we watched teams approach the ceiling of a single machine with Postgres. Metal bought them time, but with customers hitting the upper limit of what a single machine is capable of, we found there was no good option to hand them. Enter Neki.

Neki is sharded Postgres from PlanetScale. It lets you scale a Postgres database across many machines while keeping real Postgres on every shard.

Your application connects to a Neki router over the standard Postgres wire protocol, so your existing drivers, ORMs, and connection string keep working. Each shard is a full Postgres cluster with one primary and at least two replicas across 3 availability zones. There is no custom storage engine, so extensions, SQL support, and performance behave the way Postgres does.

You choose the shard key and control how tables are grouped and distributed through a JSON data topology. Schema changes, version upgrades, failovers, imports, and resharding all run as built-in fully online workflows. You also get the PlanetScale features you already rely on, including Insights, schema recommendations, branching, and MCP.

You don't have to shard on day one. Run Neki as a single primary with replicas, and when you outgrow one machine, resharding is a workflow you run against the cluster you already have.

You already know the problems that come with fast-growing Postgres databases: tables too large to vacuum or index without affecting traffic, backups taking hours, connection limits, maintenance windows for schema changes, transaction wraparound and so much more.

You can move to a bigger instance, but eventually you run out of big enough machines, and the problems don’t scale linearly as you add more cores and IOPS.

... continue reading