Skip · Cloudflare

Cloudflare D1

The business case is thin, and there's no tooling to migrate thousands of databases. Durable Objects do per-tenant SQLite better.

Cloudflare names almost no customers, and the most detailed public production story is about outgrowing D1. D1 is built on Durable Objects; use the real primitive.

Don't use it when

  • One database per tenant at scale: each Worker needs a binding per database (redeploy to add one), migrations run once per database through a rate-limited API (10,000 databases ≈ 42–83 minutes, and going over locks every API call for 5 minutes), and each database is capped at 10 GB.

Pricing

$5 a month covers 50M reads, 2M writes and 2 GB.

Provisioning

Official Pulumi package · Official Terraform provider

Use instead

Durable Objects for per-tenant SQLite; Neon for a normal database.

Alternatives

Where it fits

Last reviewed by Nicolas Dao

Want this stack in your AWS account?

Cloudless Labs is a Sydney consultancy. We migrate on-premises systems to AWS, build serverless apps on this stack, and coach teams to ship with Claude Code and Codex.

Contact Us

For general inquiries, please contact us at:

For e-learning capabilities, please contact: