Home ยป Introducing Cloudflare’s SQLite-in-DO Database Service for Workers: Boosting Performance with Cutting-Edge Technology

Introducing Cloudflare’s SQLite-in-DO Database Service for Workers: Boosting Performance with Cutting-Edge Technology

Cloudflare has introduced SQLite in Durable Objects (DO), the company’s secondary database service after D1, which utilizes SQLite just like before, but this time built on top of Durable Objects (DO) that is typically used as a key/value store.

The SQLite instance will run directly on the DO server, with the library designed to be called synchronously by Cloudflare to optimize latency and reduce usage.

This service somewhat overlaps with D1, but Cloudflare emphasizes that D1 is a more comprehensive database service that can be accessed from outside Cloudflare Workers, and in the future will replicate databases for global read access, enabling developers to write applications without worrying about where the code will run. While SQLite-in-DO will still need to consider which part of the code should run where.

Currently, SQLite-in-DO is available in beta with a limited 1GB database size limit. Storage costs are at $0.2 per GB, $0.001 per million rows read, and $1 per million rows written. Users of Workers Paid package receive the first 5GB for free, with the ability to read 25 billion rows and write 50 million rows per month.

TLDR: Cloudflare offers SQLite-in-DO, a new database service built on Durable Objects for optimized latency and reduced usage, with plans to replicate databases globally for easier app development.

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Google Cloud Spanner Database Employs Geo-partitioning to Isolate Certain Tables in Various Regions.