CD
Cloudflare D1
Cloudflare D1 is a serverless SQL database built on SQLite that runs on Cloudflare's global edge network.
Our verdict
Who it's for
Serverless SQL database at the edge
Who should look elsewhere
10 GB maximum per individual database
Pros
- +Generous free tier with 5 million reads/day and 5 GB storage
- +No egress charges unlike most cloud databases
- +Scale-to-zero means no cost when inactive
- +Time Travel provides built-in disaster recovery
- +Seamless integration with Cloudflare Workers ecosystem
Cons
- −10 GB maximum per individual database
- −SQLite compatibility means no full PostgreSQL/MySQL feature set
- −Tightly coupled to Cloudflare Workers ecosystem
- −Not suited for single large monolithic databases
- −Relatively new product with evolving feature set
Key features
- ✓Serverless SQLite database on Cloudflare edge network
- ✓Automatic read replication for low-latency global access
- ✓Time Travel backup with 30-day point-in-time recovery
- ✓Native integration with Cloudflare Workers and Pages
- ✓Standard SQL query support via D1 Client API
- ✓Scale-to-zero billing with no idle charges
- ✓Zero egress fees for data transfer
- ✓HTTP API access for external queries
- ✓GraphQL Analytics API for usage monitoring
- ✓Multiple database instances at no extra per-database cost
Pricing
| Plan | Price | Billing | Notes |
|---|---|---|---|
| Workers Free | $0 | month | 5 million rows read / day; 100,000 rows written / day; 5 GB storage total |
| Workers Paid | — | month | First 25 billion rows read / month included, then $0.001 / million rows; First 50 million rows written / month included, then $1.00 / million rows; First 5 GB storage included, then $0.75 / GB-month |