vs

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

overview
Primary model
Relational
Relational
Also supports
Document
Document, Vector, Spatial
Type
Managed service
Managed service
Status
Active
Active
Developer
Cloudflare
Databricks (Neon)
First release
2022
2022
Latest version
–
–
License
ProprietaryProprietary (Cloudflare service)
Open source (permissive)Apache License 2.0 (storage engine)
Free tier
✓
✓
popularity
WhichDB Score
5.8
30.4
Rank
#373
#86
GitHub stars
–
23.3K
Stack Overflow questions
–
5
scale & guarantees
Comfortable data size
Small (≤ 100 GB)
Medium (≤ 10 TB)
Horizontal scaling
Manual
None
Multi-region
Read replicas
None
ACID
Full
Full
Consistency
Strong, Causal
Strong
Schema
Strict
Strict
Architecture
Serverless, Primary replica
Serverless, Shared storage, Primary replica
deployment
Self-hosted
—
—
Vendor-managed cloud
✓
✓
Serverless
✓
✓
Embedded
—
—
Edge
✓
—
Clouds
Cloudflare
AWS, Azure, Vercel
capabilities
Transactions
✓
✓
Joins
✓
✓
Secondary indexes
✓
✓
Full-text search
✓
✓
Vector search
—
✓
Geospatial
—
✓
JSON
✓
✓
Change data capture
—
✓
Triggers
✓
✓
Stored procedures
—
✓
Materialized views
—
✓
TTL / expiry
—
—
Pub/Sub
—
✓
Columnar storage
—
—
In-memory
—
—
Durable persistence
✓
✓
Compression
—
✓
Encryption at rest
✓
✓
Role-based access
—
✓
Time travel
✓
✓
Branching
—
✓
Online schema changes
—
—
Streaming ingest
—
—
Offline sync
—
—
Runs in WebAssembly
—
—
interfaces
Query languages
SQL
SQL, PL/pgSQL
Client languages
JavaScript, TypeScript, Python, Rust
JavaScript, Python, Go, Java, Rust, Ruby, PHP, C#
Best for
OLTP, Edge, Content, Coordination
OLTP, Vector search, RAG, Content

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).