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

# Distributed databases (hard)

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–20 of 20, page 1 of 1, newest first.

## 2026-11-05

- [Designing a reliable unplanned failover](https://swe.quest/articles/designing-a-reliable-unplanned-failover-ab0dd731f569d08c.md): PlanetScale · 2026-11-05 · Hard · 10 min read · PostgreSQL, Replication, Resilience, Distributed systems, Distributed databases
  Neki, PlanetScale's Postgres sharding system, declares a primary dead only when its control plane (Admin) cannot reach it and at least one reachable replica reports broken replication with none contradicting.

## 2026-10-14

- [Sequences and other volatiles in Neki](https://swe.quest/articles/sequences-and-other-volatiles-in-neki-867c9857ecacbacb.md): PlanetScale · 2026-10-14 · Hard · 14 min read · Query engines, PostgreSQL, Distributed databases, SQL
  Neki, PlanetScale's sharded Postgres, implements Postgres sequences by classifying sequence operations like nextval() as router-only, with an authoritative shard hosting all sequences so values are never duplicated across shards.

## 2026-10-01

- [Building a faster, lazier router for Postgres](https://swe.quest/articles/building-a-faster-lazier-router-for-postgres-bc9a70ce219128ed.md): PlanetScale · 2026-10-01 · Hard · 15 min read · PostgreSQL, Distributed databases, Performance engineering, Go, Query engines
  Neki, PlanetScale's Postgres sharding router, cuts per-query overhead by keeping PostgreSQL wire-protocol bytes intact and decoding only as much as each query requires.
- [How we extended Apache DataFusion to execute one query across many machines](https://swe.quest/articles/how-we-extended-apache-datafusion-to-execute-one-query-across-many-machines-6519f2d407c939dd.md): Datadog Engineering · 2026-10-01 · Hard · 12 min read · Query engines, Distributed databases, Rust, Analytics & OLAP, Open source
  Datadog built Distributed DataFusion, an open source Rust framework that extends Apache DataFusion's physical execution model so a single interactive query can run across many machines while keeping latency roughly flat as data grows.

## 2026-07-08

- [Announcing etcd v3.7.0](https://swe.quest/articles/announcing-etcd-v3-7-0-eca4801619911a7e.md): Kubernetes Blog · 2026-07-08 · Hard · 8 min read · Distributed databases, Kubernetes, Performance engineering, Consensus, Go
  etcd v3.7.0 adds RangeStream, an RPC that returns large range results in chunks so neither server nor client has to buffer the whole response.

## 2026-05-27

- [Introducing multi-stage distributed query execution in ClickHouse Cloud](https://swe.quest/articles/introducing-multi-stage-distributed-query-execution-in-clickhouse-cloud-49bf049f23a569d6.md): ClickHouse · 2026-05-27 · Hard · 14 min read · Query engines, Distributed databases, Analytics & OLAP, Performance engineering
  ClickHouse Cloud adds multi-stage distributed query execution, splitting a query plan into stages connected by exchange operators (Gather, Shuffle, Broadcast, Scatter) so intermediate data can be repartitioned between nodes mid-query.

## 2026-05-07

- [Everyone gets faster writes: We turned off FPW's in Neon](https://swe.quest/articles/everyone-gets-faster-writes-we-turned-off-fpw-s-in-neon-60d0cd25f29077e7.md): Neon · 2026-05-07 · Hard · 7 min read · PostgreSQL, Storage engines, Performance engineering, Distributed databases
  Neon disabled Postgres full-page writes fleet-wide because its stateless compute streams WAL to a Paxos safekeeper quorum and has no local disk pages that can tear.

## 2026-04-21

- [Index sharding in ClickHouse Cloud: Petabyte-scale data needs petabyte-scale indexing](https://swe.quest/articles/index-sharding-in-clickhouse-cloud-petabyte-scale-data-needs-petabyte-scale-162dcf2c4093c588.md): ClickHouse · 2026-04-21 · Hard · 16 min read · Query engines, Analytics & OLAP, Distributed databases, Memory management, Performance engineering
  Index sharding in ClickHouse Cloud splits primary and secondary index analysis across replicas using consistent hashing over data parts.

## 2025-11-06

- [Teaching the Old Dog a New Trick](https://swe.quest/articles/teaching-the-old-dog-a-new-trick-a54b14a78d3029d2.md): Vinted Engineering · 2025-11-06 · Hard · 6 min read · Search, Performance engineering, Distributed databases, Open source
  Vinted moved per-user ranking cross-features from Redis into Vespa, then hit p99+ latency spikes above 100 ms after feeding bursts (500M+ updates/hour across 50+ schemas) because data redistribution broke the second-phase document summary fetch (.fill()), causing retries across content nodes.

## 2025-07-15

- [Recent Storage Performance Improvements at Neon](https://swe.quest/articles/recent-storage-performance-improvements-at-neon-e29e2d9302293c1f.md): Neon · 2025-07-15 · Hard · 8 min read · PostgreSQL, Storage engines, Performance engineering, Distributed databases, Storage systems
  Neon shipped a set of storage-layer optimizations across Safekeepers and Pageservers.

## 2025-07-09

- [No more disks: the architecture behind stateless compute in ClickHouse Cloud](https://swe.quest/articles/no-more-disks-the-architecture-behind-stateless-compute-in-clickhouse-cloud-196ae85c7a09008f.md): ClickHouse · 2025-07-09 · Hard · 18 min read · Analytics & OLAP, Distributed databases, Storage engines, Caching, Cloud platforms
  ClickHouse Cloud compute nodes are now fully stateless and diskless.

## 2025-05-29

- [CockroachDB Redefines Database Performance with Real-World Testing](https://swe.quest/articles/cockroachdb-redefines-database-performance-with-real-world-testing-c9cd765cf1dfea56.md): Cockroach Labs · 2025-05-29 · Hard · 5 min read · Distributed databases, Performance engineering, Resilience, Databases, Chaos engineering
  Cockroach Labs argues that traditional benchmarks like TPC-C, designed in 1992, measure peak throughput in pristine lab conditions and end the test once a power pull disrupts steady state, so they say nothing about behavior during failures, maintenance or recovery.

## 2025-01-29

- [Husky: Efficient compaction at Datadog scale](https://swe.quest/articles/husky-efficient-compaction-at-datadog-scale-eba7e7c7e1831aee.md): Datadog Engineering · 2025-01-29 · Hard · 18 min read · Storage engines, Analytics & OLAP, Observability, Performance engineering, Distributed databases
  Husky, Datadog's observability event store layered over object storage, keeps query cost low by controlling fragment count and layout through streaming compaction.

## 2023-09-14

- [Deno KV internals: building a database for the modern web](https://swe.quest/articles/deno-kv-internals-building-a-database-for-the-modern-web-61dddae321d95df6.md): Deno · 2023-09-14 · Hard · 10 min read · Distributed databases, Consistency models, Storage engines, JavaScript
  Deno KV's production backend runs on FoundationDB, with a custom "transaction layer" in front of it that handles multi-tenant configuration, JavaScript-native types such as bigint sums, and cross-region replication.

## 2023-05-16

- [Building and deploying MySQL Raft at Meta](https://swe.quest/articles/building-and-deploying-mysql-raft-at-meta-7a90b8f5fc15ecc0.md): Meta Engineering · 2023-05-16 · Hard · 18 min read · MySQL, Consensus, Replication, Distributed databases
  Meta replaced its MySQL semisynchronous replication, whose failover and membership changes were orchestrated by external Python automation, with MySQL Raft, a Raft consensus engine built into mysqld.

## 2023-03-30

- [Deep dive into Neon storage engine](https://swe.quest/articles/deep-dive-into-neon-storage-engine-efc0ffc53406f34d.md): Neon · 2023-03-30 · Hard · 7 min read · Storage engines, PostgreSQL, Distributed databases, Serverless, Replication
  Neon's storage engine separates Postgres compute from storage and serves pages through GetPage@LSN, reconstructing any page as of any log sequence number from immutable layer files.

## 2022-08-02

- [Why does Neon use Paxos instead of Raft, and what’s the difference?](https://swe.quest/articles/why-does-neon-use-paxos-instead-of-raft-and-what-s-the-difference-f6a04ce40b5e85a1.md): Neon · 2022-08-02 · Hard · 14 min read · Consensus, Replication, PostgreSQL, Distributed databases, Formal methods
  Neon replaces Postgres's storage layer with distributed storage, so stateless compute nodes act as Paxos proposers and a fixed set of disk-backed safekeepers act as acceptors.

## 2022-01-27

- [Living without atomic clocks: Where CockroachDB and Spanner diverge](https://swe.quest/articles/living-without-atomic-clocks-where-cockroachdb-and-spanner-diverge-d4e6d0cdd53bad94.md): Cockroach Labs · 2022-01-27 · Hard · 10 min read · Consistency models, Time & clocks, Distributed databases, Distributed systems
  CockroachDB borrows Spanner's TrueTime-inspired approach to ordering distributed transactions but replaces atomic-clock-bounded certainty with a looser uncertainty interval and uncertainty restarts.

## 2021-08-18

- [RAMP-TAO: Layering atomic transactions on Facebook’s online graph store](https://swe.quest/articles/ramp-tao-layering-atomic-transactions-on-facebook-s-online-graph-store-470552a388260a08.md): Meta Engineering · 2021-08-18 · Hard · 2 min read · Consistency models, Distributed databases, Caching, Distributed systems
  RAMP-TAO is a protocol that layers read-atomic transactional guarantees on top of TAO, Facebook's eventually consistent social graph store, so developers get an intuitive read transaction API without handling fractured-read anomalies.

## 2021-08-06

- [How we built a general purpose key value store for Facebook with ZippyDB](https://swe.quest/articles/how-we-built-a-general-purpose-key-value-store-for-facebook-with-zippydb-852970eb82fe8238.md): Meta Engineering · 2021-08-06 · Hard · 10 min read · Distributed databases, Replication, Consistency models, Consensus, Multi-tenancy
  ZippyDB is Facebook's largest strongly consistent, geo-distributed key-value store, built by layering a reusable replication library (Data Shuttle) on RocksDB, Shard Manager and a ZooKeeper-based config service.

Same list as RSS: [https://swe.quest/feed.xml?difficulty=hard&tag=distributed-databases](https://swe.quest/feed.xml?difficulty=hard&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)
