• Product Center

Cloudflare D1

Cloudflare D1 is a serverless SQL database solution built to scale. Discover the benefits and low-cost pricing of our serverless relational database.

Cloudflare D1
Create serverless SQL databases Create a serverless relational database in seconds with D1. With a familiar SQL query language, point-in-time recovery, and cost-effective pricing, you are empowered to build the next big thing. D1 is built on one of the most widely used SQL query engines in the world, enabling you to use familiar drivers and ORMs. Our natively serverless architecture enables developers to scale databases, increasing the pace of innovation. With always-on Time Travel, easily roll your database back to any specific minute in the last 30 days. D1 bills on queries you issue and any storage above your plan’s limits. You are not billed for hours or capacity units. HOW SERVERLESS SQL WORKS D1 is built on SQLite, has built-in JSON parsing and querying functions with support for full-text search triggers. Top D1 use cases Databases are a key part of building full-stack applications. Build infinitely scalable databases with D1. Combine D1 and Workers for globally distributed apps and use Hyperdrive to query databases in legacy clouds. With support for up to 10 GB databases and 50,000 databases per account, unlock the ability to build production-scale applications. Documentation Blog Guide Cloudflare D1 is a natively serverless SQL database built on the SQLite engine. It allows developers to create and manage relational databases that integrate directly with Cloudflare Workers, providing a complete stack for building full-stack applications on a global network. Cloudflare D1 offers a low-cost, usage-based pricing model that only bills for storage and the specific queries you run, with no charges for idle time or data egress. Developers can also get started for free with the Workers Free plan, which includes daily limits of five million rows read, 100,000 rows written, and up to 5 GB of total storage. D1 is built to support production-scale needs, allowing for individual databases up to 10 GB in size. Additionally, users can manage up to 50,000 separate databases within a single account, facilitating highly modular or per-tenant architectures. You can manage D1 through both the Cloudflare dashboard and the Wrangler command-line interface. These tools provide parity for essential tasks such as bootstrapping data, creating tables, and triggering backups, making the database accessible regardless of your preferred workflow. Developers can use Hyperdrive in combination with Workers to connect their applications to legacy cloud databases. This allows for a hybrid approach where you can maintain globally distributed applications while still querying existing data stores. Time Travel is a built-in restoration tool that provides always-on backup capabilities. This feature allows you to roll your database back to any specific minute within the last 30 days, ensuring you can quickly recover from mistakes or unexpected issues.
server-1-tile.png
icon_tile_optimization-scale.png
icon_tile_time.png
price-tile.png
Developer_Platform_Solutions.png
icon_tile_workers-platform.png
icon_tile_optimization-web.png
thumbnail_insights-1.png
thumbnail_Blog-template-4.png
thumbnail_product-update-1_gears.png
security-shield-protection-2.svg

Ask about this product

Include the product name and your questions in your enquiry.

Send your sales request

Privacy Policy