Cloudflare

A comparison of Cloudflare’s data storage options:

Storage OptionBest Use CasesMaximum StorageMaximum Size Per ValueConsistency ModelKey Features
Workers KVHigh-volume reads, distributed configurationUnlimited25 MiBEventual (60s updates)Time-to-live (TTL), global caching[2]
D1Relational database needs250 GiB10 GiB per databaseSerializable/CausalSQL-based database[2]
R2Large unstructured files, S3-compatible storageUnlimited5 TiB per objectStrong read-after-writeZero egress fees, S3 API compatibility[1][2]
Durable ObjectsTransactional storage50 GiB128 KiB per valueSerializable with transactionsCoordinated global storage[2]

Sources [1] Cloudflare R2 docs https://developers.cloudflare.com/r2/ [2] Choosing a data or storage product. · Cloudflare Workers docs https://developers.cloudflare.com/workers/platform/storage-options/ [3] Announcing Cloudflare R2 Storage: Rapid and Reliable Object … https://blog.cloudflare.com/introducing-r2-object-storage/ [4] Cloudflare R2 | Zero Egress Fee Object Storage https://www.cloudflare.com/developer-platform/products/r2/ [5] Storage Wars: Cloudflare R2 vs Amazon S3 - Vantage https://www.vantage.sh/blog/cloudflare-r2-aws-s3-comparison


Pricing

Here’s a comprehensive comparison of Cloudflare’s data storage pricing:

ServiceFree TierPaid Tier Base PriceAdditional Storage CostAdditional Operation Costs
Workers KV1 GB storage, 100K reads/day, 1K writes/day1 GB included$0.50/GB-monthReads: 5.00/million[3]
D1 Database5 GB total, 5M reads/day, 100K writes/dayFirst 5 GB included$0.75/GB-monthReads: 1.00/million rows[2]
R2 Storage10 GB storage/month, 1M Class A ops, 10M Class B opsNo base fee$0.015/GB-monthClass A: 0.36/million requests[1]
Durable ObjectsNot available400K GB-seconds included$0.20/GB-month (SQL storage)Reads: 1.00/million rows[3]

Notable Features

  • All services offer free egress (data transfer out)[1][2]
  • R2 offers an Infrequent Access tier at $0.01/GB-month with different operation costs[1]
  • Workers Paid plan has a minimum charge of $5 USD per month[3]
  • Durable Objects are only available on the Paid plan[3]

Sources [1] Pricing - R2 - Cloudflare Docs https://developers.cloudflare.com/r2/pricing/ [2] Pricing - D1 - Cloudflare Docs https://developers.cloudflare.com/d1/platform/pricing/ [3] Pricing - Workers - Cloudflare Docs https://developers.cloudflare.com/workers/platform/pricing/