Cloudflare·
Under the hood, off the hot path: How D1 scales to millions of databases
TL;DR
Cloudflare D1 needed to support millions of small databases without slowing queries through centralized management bottlenecks. The team redesigned its control plane to scale independently of query execution, using load tests well above expected demand to guide optimization. D1 now supports platforms with millions of databases and hundreds of thousands active, with live databases growing 15× and daily active databases growing 18× over the past year.