Store application data

Last updated Apr 24, 2026 Web applications need different storage types for different workloads — relational data, key-value lookups, file uploads, and real-time state. Cloudflare provides serverless storage options including D1 (SQL), KV (key-value), R2 (object storage), and Durable Objects (strongly consistent state).

Solutions

D1

Serverless SQL database built on SQLite, with global read replication. Learn more about D1.

  • SQL database - Full Structured Query Language (SQL) with global read replication built on SQLite

KV

Globally distributed key-value storage for low-latency reads. Learn more about KV.

  • Key-value storage - Fast globally-distributed reads for configuration, sessions, and cached data

R2

S3-compatible object storage with zero egress fees. Learn more about R2.

  • Object storage - Store user-uploaded files and assets with no egress fees

Durable Objects

Stateful objects with strongly consistent storage and coordination. Learn more about Durable Objects.

  • Real-time state - Strongly consistent coordination for collaborative features and live data

Get started

  1. D1 get started
  2. KV get started
  3. R2 get started
  4. Durable Objects get started

Was this helpful?

YesNo

On this page

Store application data - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/use-cases/web-apps/store-data/#page","headline":"Store application data","description":"Persist data with serverless databases, key-value storage, and object storage.","url":"https://developers.cloudflare.com/use-cases/web-apps/store-data/","inLanguage":"en","image":"https://developers.cloudflare.com/use-cases/web-apps/store-data/og.png?v=177627b810cb4d4f","dateModified":"2026-04-24","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Build, protect, and monitor APIs with Cloudflare Workers, API Shield, rate limiting, mTLS, and Logpush. title: APIs and microservices image: https://developers.cloudflare.com/use-cases/apis/og.png?v=94d9da93d006ac85


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/use-cases/llms.txt
Use this file to discover all available pages before exploring further.