Cloudflare Scales D1 Control Plane to Millions of Databases
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Cloudflare D1 control plane redesign for millions of databases is deeply technical and relevant to serverless and data engineering.
Cloudflare redesigned D1's control plane to support millions of serverless SQL databases by decoupling query processing at the edge from centralized management, using Postgres for metadata, ClickHouse for analytics, and Workers KV for globally replicated routing. The architecture employs 30-second heartbeats with per-database jitter for self-correcting creation/deletion operations, asynchronous batching for storage limit enforcement, and Hyperdrive caching layers to keep Postgres out of the data plane. This design avoids metastable failures during cache purges and handles an 18-fold growth in daily active databases over the past year.