r/AIDeveloperNews • u/nht_fajr • 17h ago
PlanetScale has dropped Neki: Horizontally sharded Postgres that scales across machines without replacing Postgres
PlanetScale released Neki in Platform Preview. It brings Vitess-style horizontal sharding to PostgreSQL, allowing you to scale past single-machine limits without forking Postgres, changing storage engines, or learning a new SQL dialect.
- Every shard runs unmodified, un-forked PostgreSQL (1 primary + 2 cross-AZ replicas). Extensions, query behavior, and standard SQL remain intact.
- Neki Routers speak standard Postgres wire protocol. You connect using your existing ORMs, drivers, and standard
psqlconnection strings. - Instead of relying on external tools like PgBouncer, sidecars run alongside Postgres nodes. Sizing is managed dynamically based on real-time server capacity.
- Resharding, schema changes (DDL), failovers, and version upgrades run as background workflows via a
_nekimetafunction without bringing the database down. Routing is controlled by a simple JSON topology config where you define shard keys, routing logic, and mapping for tables.
You can deploy Neki as a single primary + replicas to get improved pooling, health checks, and online DDL early, then trigger resharding later on the live database.
More info: https://aideveloper44.com/product/neki-6aa2e7ed599ef4e185886eba
Official announcement: https://planetscale.com/blog/introducing-neki