---
title: "Distributed databases (medium)"
description: "Sharding, partitioning, distributed SQL/NoSQL stores"
url: "https://swe.quest/tags/distributed-databases?difficulty=medium&per=48"
---

# Distributed databases (medium)

Topic in Data & databases: Sharding, partitioning, distributed SQL/NoSQL stores

By difficulty: [Easy](https://swe.quest/tags/distributed-databases.md?difficulty=easy) · [Medium](https://swe.quest/tags/distributed-databases.md?difficulty=medium) · [Hard](https://swe.quest/tags/distributed-databases.md?difficulty=hard)

Posts 1–38 of 38, page 1 of 1, newest first.

## 2026-11-23

- [Why you shouldn't do application-level sharding](https://swe.quest/articles/why-you-shouldn-t-do-application-level-sharding-4fe6249c12df9221.md): PlanetScale · 2026-11-23 · Medium · 21 min read · Distributed databases, Scaling, Consistency models, Schema migrations, PostgreSQL
  Application-level sharding of an OLTP database looks simple on day one (a \`shard\_for(user\_id % N)\` function) but accumulates serious engineering burdens as a system grows.

## 2026-11-09

- [Zero-Copy Migration: How Yelp Moved Its Cassandra Fleet Between Kubernetes Clusters](https://swe.quest/articles/zero-copy-migration-how-yelp-moved-its-cassandra-fleet-between-kubernetes-0d6b3f088cd34645.md): Yelp Engineering · 2026-11-09 · Medium · 12 min read · Kubernetes, Distributed databases, Storage systems, Cloud platforms, Refactoring & migrations
  Yelp moved roughly 1000 Cassandra pods and nearly a petabyte of data from self-managed Kubernetes clusters to Amazon EKS without streaming any data.

## 2026-11-03

- [CockroachDB 26.4: One major upgrade a year with skip-level upgrades, run active-active across two data centers, and encrypt for the post-quantum era](https://swe.quest/articles/cockroachdb-26-4-one-major-upgrade-a-year-with-skip-level-upgrades-run-active-32aefe70e59e049a.md): Cockroach Labs · 2026-11-03 · Medium · 7 min read · Distributed databases, Databases, Identity & auth, Cryptography, Observability
  CockroachDB 26.4 introduces skip-level upgrades so operators can move from one annual .4 release to the next without stopping at intermediate releases, and adds active-active writes across two data centers via transactional logical data replication.

## 2026-10-28

- [1M Durable Workflows per Second on Postgres](https://swe.quest/articles/1m-durable-workflows-per-second-on-postgres-8f041571c87c6775.md): DBOS · 2026-10-28 · Medium · 5 min read · PostgreSQL, Distributed databases, Scaling, Resilience, Queues & messaging
  Sharding Postgres with PgDog let DBOS durable workflow throughput scale linearly from 20K workflows/sec on one db.m7i.4xlarge RDS instance to 1M workflows/sec across 50 shards.

## 2026-10-23

- [Rapidly scaling online storage to serve over 1 billion ChatGPT users (Part II)](https://swe.quest/articles/rapidly-scaling-online-storage-to-serve-over-1-billion-chatgpt-users-part-ii-1fe17c5ac1f7349f.md): OpenAI · 2026-10-23 · Medium · 18 min read · Multi-tenancy, Distributed databases, Scaling, Capacity planning, Cloud platforms
  OpenAI's Habitat storage platform went from one shared Azure Cosmos DB container, to per-use-case dedicated containers, and back to a shared multi-tenant container.
- [Shard design doesn't start from your tables](https://swe.quest/articles/shard-design-doesn-t-start-from-your-tables-283c900085b220b2.md): PlanetScale · 2026-10-23 · Medium · 8 min read · Distributed databases, PostgreSQL, System design
  Neki's shard groups co-locate related Postgres tables by hashing a shared shard key (e.g. customer\_id via xxhash) into a 64-bit keyspace split across shards, so joins and transactions for one customer stay on a single shard with full Postgres semantics.

## 2026-09-28

- [Handling hot shards](https://swe.quest/articles/handling-hot-shards-713450434ac73606.md): PlanetScale · 2026-09-28 · Medium · 7 min read · Distributed databases, PostgreSQL, Scaling, Multi-tenancy
  When a shard key like tenant\_id stops matching reality because a few whale tenants dominate load or cross-tenant queries appear, Neki (PlanetScale's sharded Postgres from the Vitess maintainers) offers three escalating fixes: vertically scale the hot shard with its own configuration profile, isolate the whale by narrowing hashed key ranges in the declarative data topology, or reshard specific tables by a better key.

## 2026-09-18

- [The architecture of Neki](https://swe.quest/articles/the-architecture-of-neki-b0a20bdb70a4c3cd.md): PlanetScale · 2026-09-18 · Medium · 9 min read · PostgreSQL, Distributed databases, Replication, System design, Kubernetes
  Neki shards unmodified PostgreSQL behind a single connection string.

## 2026-09-03

- [ZGateway: Learnings from Putting a Proxy in Front of ZippyDB](https://swe.quest/articles/zgateway-learnings-from-putting-a-proxy-in-front-of-zippydb-e9677a1b8fb7de14.md): Meta Engineering · 2026-09-03 · Medium · 13 min read · Distributed databases, Load balancing, Resilience, Scaling, Multi-tenancy
  ZGateway is a stateless regional proxy tier in front of ZippyDB, Meta's most widely used key-value store.

## 2026-08-06

- [Orbital Computing and Distributed Databases | CockroachDB](https://swe.quest/articles/orbital-computing-and-distributed-databases-cockroachdb-c5f1cf8d95fd646c.md): Cockroach Labs · 2026-08-06 · Medium · 18 min read · Distributed databases, Consensus, Replication, Distributed systems, Performance engineering
  Orbital compute creates a harder problem for stateful systems than for GPUs: data must be replicated, coordinated and placed across a moving constellation.

## 2026-08-05

- [Introducing the CockroachDB Kubernetes Operator](https://swe.quest/articles/introducing-the-cockroachdb-kubernetes-operator-e95f6b6906d1361c.md): Cockroach Labs · 2026-08-05 · Medium · 5 min read · Kubernetes, Distributed databases, Deployment, Schema migrations
  Cockroach Labs has made its CockroachDB Kubernetes Operator generally available.

## 2026-07-30

- [How Jump Trading uses ClickHouse with Iceberg for analytics](https://swe.quest/articles/how-jump-trading-uses-clickhouse-with-iceberg-for-analytics-1cafb9464ead1735.md): ClickHouse · 2026-07-30 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Distributed databases, Performance engineering
  Jump Trading runs a self-managed, on-prem ClickHouse cluster of tens of nodes as the system of record for petabyte-scale trading logs, ingesting hundreds of TB per day with peaks of 10M rows/sec and a sub-20-second p99, reconciled daily for zero data loss.

## 2026-06-30

- [A Quadrillion Rows across three Clouds: scaling LogHouse](https://swe.quest/articles/a-quadrillion-rows-across-three-clouds-scaling-loghouse-ac5a7813ca827fb9.md): ClickHouse · 2026-06-30 · Medium · 20 min read · Observability, Analytics & OLAP, Scaling, Distributed databases, Storage engines
  LogHouse, ClickHouse Cloud's internal logging platform, has grown to 431 PiB uncompressed (27 PiB on disk) and 1.59 quadrillion rows across 36 cells in 33 geoshards on three clouds, ingesting up to 80 GiB/s and 190M rows/s.

## 2026-03-19

- [Migrating Etsy’s database sharding to Vitess](https://swe.quest/articles/migrating-etsy-s-database-sharding-to-vitess-c6bef1d09f2cd679.md): Etsy Code as Craft · 2026-03-19 · Medium · 9 min read · MySQL, Distributed databases, Refactoring & migrations, SQLite, Deployment
  Etsy moved shard routing for its ~1,000-table, ~1,000-shard, 425 TB MySQL cluster (1.7M requests/sec) from an ORM that looked up random shard mappings in a single index database to Vitess vindexes, without moving any data.

## 2025-11-13

- [You should shard your database](https://swe.quest/articles/you-should-shard-your-database-12cdc70ed1f6d2d7.md): PgDog · 2025-11-13 · Medium · 7 min read · PostgreSQL, Distributed databases, Scaling, Query engines
  Sharding Postgres early avoids the operational pain of large single instances, illustrated by an outage where stale planner statistics caused a 300 GB table to be sequentially scanned.

## 2025-09-29

- [How we scaled raw GROUP BY to 100 B+ rows in under a second](https://swe.quest/articles/how-we-scaled-raw-group-by-to-100-b-rows-in-under-a-second-c36aee54a6541514.md): ClickHouse · 2025-09-29 · Medium · 23 min read · Query engines, Analytics & OLAP, Performance engineering, Distributed databases, Scaling
  ClickHouse Cloud's parallel replicas feature spreads a single GROUP BY query across every core of every node in a service, with no pre-aggregation or data reshuffling.

## 2025-09-03

- [Primary keys in sharded databases](https://swe.quest/articles/primary-keys-in-sharded-databases-4b73737ab618f6da.md): PgDog · 2025-09-03 · Medium · 5 min read · PostgreSQL, Distributed databases, Storage engines
  PgDog generates globally unique primary keys across Postgres shards without extensions or external ID services.

## 2025-08-05

- [How Klaviyo uses a 192-node ClickHouse cluster for real-time segmentation and personalization](https://swe.quest/articles/how-klaviyo-uses-a-192-node-clickhouse-cluster-for-real-time-segmentation-and-ba32bd092d16f47c.md): ClickHouse · 2025-08-05 · Medium · 5 min read · Analytics & OLAP, Scaling, System design, Distributed databases
  Klaviyo replaced a Python-orchestrated segmentation engine built on MySQL and a large Cassandra cluster of pre-aggregated counters with a 192-node on-prem ClickHouse cluster.

## 2025-05-13

- [Leveraging Change Data Capture For Database Migrations At Scale](https://swe.quest/articles/leveraging-change-data-capture-for-database-migrations-at-scale-c10095cde295b15f.md): Squarespace Engineering · 2025-05-13 · Medium · 6 min read · Schema migrations, Event-driven architecture, PostgreSQL, Distributed databases, Stream processing
  Squarespace migrated many PostgreSQL databases to CockroachDB without write downtime by streaming changes through a CDC pipeline: pgoutput logical decoding feeds per-table Debezium connectors into Kafka (Avro), and per-table Apache Beam pipelines on Dataflow upsert batched events into CRDB with checkpointing and backpressure.

## 2025-03-27

- [ClickHouse Release 25.3](https://swe.quest/articles/clickhouse-release-25-3-9135d1897f13fbb5.md): ClickHouse · 2025-03-27 · Medium · 8 min read · Analytics & OLAP, Query engines, Caching, Distributed databases
  ClickHouse 25.3 adds query support for AWS Glue and Unity lakehouse catalogs and declares the columnar JSON type, along with the Variant and Dynamic types it is built on, production-ready.

## 2025-02-13

- [A Descent Into the Vörtex](https://swe.quest/articles/a-descent-into-the-vortex-6dcd52020263ac13.md): TigerBeetle · 2025-02-13 · Medium · 3 min read · Testing, Chaos engineering, Distributed databases, Zig
  TigerBeetle has added Vortex, a non-deterministic, generative full-system test harness that complements its Deterministic Simulation Testing by exercising real production binaries and client libraries from the outside in.

## 2025-01-27

- [Introducing Warehouses: Compute-compute separation in ClickHouse Cloud](https://swe.quest/articles/introducing-warehouses-compute-compute-separation-in-clickhouse-cloud-1fc38498daa39db3.md): ClickHouse · 2025-01-27 · Medium · 10 min read · Analytics & OLAP, Multi-tenancy, Cloud platforms, Distributed databases
  ClickHouse Cloud Warehouses let multiple services, each with its own endpoint, compute nodes, sizing, idling and network access rules, read and write the same data, isolating workloads such as ingestion, BI dashboards and ad-hoc analysis.

## 2024-08-21

- [Incident Review: Pageserver outage in us-east-1](https://swe.quest/articles/incident-review-pageserver-outage-in-us-east-1-0597b32138c02b21.md): Neon · 2024-08-21 · Medium · 6 min read · Incidents & postmortems, Resilience, Distributed databases, PostgreSQL, Scheduling
  A sudden EC2 instance failure took down a Neon pageserver in us-east-1, leaving about 0.4% of projects unable to read uncached pages for 30 minutes to 2 hours.

## 2024-07-31

- [Unified Grid: How We Re-Architected Slack for Our Largest Customers](https://swe.quest/articles/unified-grid-how-we-re-architected-slack-for-our-largest-customers-0ecd04c49320fd50.md): Slack Engineering · 2024-07-31 · Medium · 10 min read · Multi-tenancy, Refactoring & migrations, System design, Distributed databases, Testing
  Slack re-architected its backend and clients to replace the workspace-centric model, where session tokens carried a workspace ID used for shard routing and access control, with an org-wide Unified Grid view for Enterprise Grid customers.

## 2024-05-09

- [Evolving the Backend Storage for Platform Metrics](https://swe.quest/articles/evolving-the-backend-storage-for-platform-metrics-0fb82a7939c98396.md): Heroku Engineering · 2024-05-09 · Medium · 6 min read · Databases, Distributed databases, Observability, Cloud platforms, Schema migrations
  Heroku migrated the time-series store behind MetaaS, its internal metrics service, from self-managed Apache Cassandra to AWS DynamoDB without user-visible impact.

## 2024-05-01

- [What you get when you think of Postgres storage as a transaction journal](https://swe.quest/articles/what-you-get-when-you-think-of-postgres-storage-as-a-transaction-journal-a74912c90f281399.md): Neon · 2024-05-01 · Medium · 9 min read · PostgreSQL, Storage engines, Replication, Distributed databases
  Neon treats Postgres storage as a transaction journal: the write-ahead log becomes the source of truth instead of a recovery aid.

## 2024-04-15

- [How we scale an open source, multi-tenant storage engine for Postgres written in Rust](https://swe.quest/articles/how-we-scale-an-open-source-multi-tenant-storage-engine-for-postgres-written-in-e5615307ced50afc.md): Neon · 2024-04-15 · Medium · 5 min read · Storage engines, PostgreSQL, Distributed databases, Multi-tenancy, Scaling
  Neon shards its Rust-based Pageserver storage layer by dividing each Postgres relation's 8KiB block numbers into stripes (default 256MiB) and hashing each stripe to a Pageserver.

## 2024-03-14

- [How Figma’s databases team lived to tell the scale](https://swe.quest/articles/how-figma-s-databases-team-lived-to-tell-the-scale-5117114294b188fe.md): Figma · 2024-03-14 · Medium · 19 min read · PostgreSQL, Distributed databases, Scaling, Query engines
  Figma horizontally sharded its RDS Postgres stack after vertical partitioning ran out of room.

## 2024-01-17

- [Horizontally scaling the Rails backend of Shop app with Vitess](https://swe.quest/articles/horizontally-scaling-the-rails-backend-of-shop-app-with-vitess-03c7b2da20f98ec3.md): Shopify Engineering · 2024-01-17 · Medium · 27 min read · MySQL, Distributed databases, Ruby, Scaling, Schema migrations
  Shop app outgrew a single MySQL database despite federating tables across databases, so the team moved its Rails backend to Vitess, sharding user-owned tables by user\_id into a "users" keyspace and keeping the rest in an unsharded "global" keyspace.

## 2023-12-19

- [How Meta built the infrastructure for Threads](https://swe.quest/articles/how-meta-built-the-infrastructure-for-threads-961a6b509998fe97.md): Meta Engineering · 2023-12-19 · Medium · 7 min read · Scaling, Distributed databases, Multi-tenancy, Serverless, Resilience
  Threads reached 100 million sign-ups in five days on existing shared Meta infrastructure rather than purpose-built systems, illustrated through two components: ZippyDB and Async.

## 2023-11-15

- [The Query Strikes Again](https://swe.quest/articles/the-query-strikes-again-fa807954ef58b362.md): Slack Engineering · 2023-11-15 · Medium · 13 min read · Incidents & postmortems, MySQL, Resilience, Replication, Distributed databases
  A customer's bulk removal of users triggered Slack's "forget user" async job, which fanned out into a huge number of "leave channel" jobs.

## 2023-04-13

- [ClickHouse Release 23.3](https://swe.quest/articles/clickhouse-release-23-3-99009346ddff53ae.md): ClickHouse · 2023-04-13 · Medium · 8 min read · Analytics & OLAP, Distributed databases, Observability, SQL
  ClickHouse 23.3 LTS adds parallel replicas, which let multiple replicas of the same shard each process distinct data ranges assigned by an initiator node.

## 2022-10-11

- [Contentsquare Migration from Elasticsearch to ClickHouse](https://swe.quest/articles/contentsquare-migration-from-elasticsearch-to-clickhouse-052c118198db3e2f.md): ClickHouse · 2022-10-11 · Medium · 6 min read · Analytics & OLAP, Refactoring & migrations, Distributed databases, Performance engineering, Cost optimization
  Contentsquare replaced 14 Elasticsearch clusters with ClickHouse over a phased migration.

## 2022-06-27

- [How to build a multi-region Python app with CockroachDB, Django, and K8s](https://swe.quest/articles/how-to-build-a-multi-region-python-app-with-cockroachdb-django-and-k8s-004ef71dbf260924.md): Cockroach Labs · 2022-06-27 · Medium · 6 min read · Distributed databases, Python, Kubernetes, Replication, Privacy
  Data domiciling in a Django app on CockroachDB works by adding a 'cloud' field to a Customers model, deploying the app to Kubernetes clusters in Azure, AWS and GCP, and pinning each row to a region.

## 2022-05-17

- [Introducing Husky, Datadog’s third-generation event store](https://swe.quest/articles/introducing-husky-datadog-s-third-generation-event-store-c33e11fe78ed46cc.md): Datadog Engineering · 2022-05-17 · Medium · 12 min read · Storage engines, Multi-tenancy, Distributed databases, System design, Analytics & OLAP
  Husky is Datadog's third-generation event store, an unbundled, schemaless, vectorized column store that separates compute from storage on top of S3 and a FoundationDB-backed metadata store.

## 2022-01-26

- [What’s New in ClickHouse 22.1](https://swe.quest/articles/what-s-new-in-clickhouse-22-1-dbe5057974c6a557.md): ClickHouse · 2022-01-26 · Medium · 8 min read · Analytics & OLAP, Databases, Distributed databases
  ClickHouse 22.1 adds schema inference for table functions like url, s3, file and hdfs, detecting format and compression from the file extension and reading column types from self-describing formats such as Native, Parquet, Avro and ORC.

## 2021-09-27

- [Partitioning GitHub’s relational databases to handle scale](https://swe.quest/articles/partitioning-github-s-relational-databases-to-handle-scale-7b5ea75acfc088c0.md): GitHub Engineering · 2021-09-27 · Medium · 9 min read · MySQL, Distributed databases, Scaling, Schema migrations, Ruby
  GitHub split its monolithic \`mysql1\` MySQL cluster by first virtually partitioning tables into schema domains (declared in YAML) and enforcing boundaries with query and transaction linters, then physically moving domains to new clusters via Vitess vertical sharding or a custom ProxySQL/GTID-based write-cutover script.

## 2021-09-24

- [Shard Balancing: Moving Shops Confidently with Zero-Downtime at Terabyte-scale](https://swe.quest/articles/shard-balancing-moving-shops-confidently-with-zero-downtime-at-terabyte-scale-76a6177fa357eea4.md): Shopify Engineering · 2021-09-24 · Medium · 13 min read · MySQL, Distributed databases, Schema migrations, Scaling
  Shopify rebalances its MySQL shards by moving individual shops between pods online, with downtime confined to a brief cutover.

Same list as RSS: [https://swe.quest/feed.xml?difficulty=medium&tag=distributed-databases](https://swe.quest/feed.xml?difficulty=medium&tag=distributed-databases). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
