Under the hood, off the hot path: How D1 scales to millions of databases
This is the unglamorous half of a serverless database, written up properly. D1’s live database count grew 65x in two years, and most of the engineering went into keeping the control plane off the query path: routing metadata in Workers KV, every Durable Object heartbeating every 30s to fix drift and orphans, per-account storage totals precomputed instead of SUM-ed on read. The failure-mode list alone is worth the read.