# Under the hood, off the hot path: How D1 scales to millions of databases

DevFeed: [Under the hood, off the hot path: How D1 scales to millions of databases](<https://devfeed.tech/articles/under-the-hood-off-the-hot-path-how-d1-scales-to-millions-of-databases-86353.md>)

Original publisher: [Read original article](<https://blog.cloudflare.com/d1-control-plane/>)

Author: Lambros Petrou

Published: 2026-10-13T16:20:18Z

Content type: article

Language: en

Sources: [Cloudflare Blog](<https://devfeed.tech/sources/cloudflare-blog.md>)

Topics: [control-plane](<https://devfeed.tech/topics/control-plane.md>), [Supabase](<https://devfeed.tech/topics/supabase.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>), [Service fabric](<https://devfeed.tech/topics/service-fabric.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [caching](<https://devfeed.tech/tags/caching.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [d1](<https://devfeed.tech/tags/d1.md>), [databases](<https://devfeed.tech/tags/databases.md>), [deep-dive](<https://devfeed.tech/tags/deep-dive.md>), [developer-platform](<https://devfeed.tech/tags/developer-platform.md>), [edge-database](<https://devfeed.tech/tags/edge-database.md>), [scale](<https://devfeed.tech/tags/scale.md>), [sql](<https://devfeed.tech/tags/sql.md>), [workers](<https://devfeed.tech/tags/workers.md>)

## AI overview

Cloudflare describes how it scaled D1's control plane to support millions of managed SQLite databases while keeping query traffic off centralized components. The article explains edge routing, Workers KV and Hyperdrive caching, self-correcting database heartbeats, asynchronous usage processing, and pre-aggregation to reduce database load and write contention.

## Source excerpt

A deep dive into how D1 architected its control plane to scale and manage millions of databases, while keeping data plane query operations at the edge. We share guiding principles on how to build on the Developer Platform effectively.