Author
May 07, 2026
2 min read

The edge database landscape has matured rapidly. Three platforms lead: Cloudflare D1, Turso, and PlanetScale. Each takes a fundamentally different approach to the same problem: providing low-latency data access from globally distributed compute.
Built on SQLite, D1 is deeply integrated with Cloudflare Workers. No connection pooling is needed—the Worker runtime handles database access natively through a binding API that eliminates the network overhead of traditional database drivers.
Strengths: Zero cold starts because SQLite is embedded in the Worker process. Deep integration means no separate connection configuration. The free tier covers 100,000 reads per day, generous enough for most personal projects and small SaaS applications.
Limitations: The 128MB max database size (extendable on request) limits data volume. You are locked into the Cloudflare ecosystem—migrating out requires exporting SQLite and reconfiguring connections.
Also built on SQLite, Turso uses libSQL—an open-source fork with built-in replication. Turso's architecture allows embedded replicas that sync from a primary database, enabling sub-millisecond reads from any location.
Strengths: Embedded replicas mean the fastest possible read performance. Open-source libSQL means no vendor lock-in for the database engine itself.
Limitations: Write throughput is limited by the primary region location. Replication lag means reads may return stale data for a few seconds after a write.
Built on MySQL with Vitess for horizontal scaling. PlanetScale's branching workflow creates database copies for development and CI, enabling schema changes without breaking production.
Strengths: Battle-tested at scale by companies like Shopify. The branching workflow is unique and valuable for team development. Familiar MySQL ecosystem.
Limitations: More expensive at scale. Requires connection pooling for edge runtimes, adding latency. Not serverless in the same sense as D1 or Turso.
Start with D1 if you are all-in on Cloudflare. Add Turso for read-heavy workloads with global audiences. Reserve PlanetScale for applications that need MySQL compatibility or database branching workflows. For most new edge projects, D1's integration advantage outweighs its limitations.