Cloudflare D1 vs Neon
Cloudflare D1: Serverless SQLite for Cloudflare Workers, priced per row read and written, with read replicas and time travel. Neon: Serverless Postgres with copy-on-write branching and scale-to-zero, now part of Databricks.
key differences
- Licensing: Cloudflare D1 is proprietary (Proprietary (Cloudflare service)); Neon is open source (permissive) (Apache License 2.0 (storage engine)).
- Neon is built for larger datasets (≤ 10 TB) than Cloudflare D1 (≤ 100 GB).
- Horizontal scaling is manual in Cloudflare D1 and none in Neon.
- Only Neon has vector search, geospatial, change data capture, stored procedures, materialized views.
choose cloudflare-d1 for
- +Database-per-tenant SaaS on Workers
- +Edge apps, blogs and CMS backends
- +Configuration and feature metadata near users
- +Prototypes needing SQL without managing servers
best at · OLTP, Edge, Content
choose neon for
- +Per-pull-request preview databases
- +AI app builders and agents provisioning databases on demand
- +SaaS with many small, mostly idle tenant databases
- +Serverless and edge apps on Vercel or Cloudflare
best at · OLTP, Vector search, RAG
Cloudflare D1 vs Neon: FAQ
What is the difference between Cloudflare D1 and Neon?
Cloudflare D1: Serverless SQLite for Cloudflare Workers, priced per row read and written, with read replicas and time travel. Neon: Serverless Postgres with copy-on-write branching and scale-to-zero, now part of Databricks. Licensing: Cloudflare D1 is proprietary (Proprietary (Cloudflare service)); Neon is open source (permissive) (Apache License 2.0 (storage engine)). Neon is built for larger datasets (≤ 10 TB) than Cloudflare D1 (≤ 100 GB). Horizontal scaling is manual in Cloudflare D1 and none in Neon.
When should I choose Cloudflare D1 over Neon?
Choose Cloudflare D1 for database-per-tenant SaaS on Workers; edge apps, blogs and CMS backends; and configuration and feature metadata near users. Choose Neon for per-pull-request preview databases; AI app builders and agents provisioning databases on demand; and SaaS with many small, mostly idle tenant databases.
Is Cloudflare D1 or Neon more popular?
Neon ranks #86 on the WhichDB Score (30.4/100) and Cloudflare D1 ranks #373 (5.8/100). Popularity is not fit: check the requirements that matter for your project.
Are Cloudflare D1 and Neon open source?
No. Cloudflare D1 is proprietary, closed-source software. Yes. Neon is open source. License: Apache License 2.0 (storage engine).