Cloudflare R2 storage generally available

Cloudflare recently announced the general availability of R2 storage, an S3-compatible object storage with no egress charges. The new service provides dynamic functionality integrating with Cloudflare Workers.

Designed to provide low-latency, high-throughput storage, R2 storage leverages a content delivery network that spans more than 275 cities in more than 100 countries. Cloudflare provides three ways to access an R2 object: the Worker Runtime API, to access a bucket from serverless code, S3 API compatibility, to access it using an S3-compatible API, and public buckets. Ali CabralVice President of Products at Cloudflare, writes:

Who stores data with the intention of never reading it? Nobody. However, each time you read data, the output tax is applied. R2 gives developers the ability to freely access data, breaking the ecosystem lock that has long tied the hands of app makers.

Previewed a year ago and touted as “no-egress-cost object storage,” R2 Storage claims to be the cheapest option for high-performance object storage, with Cloudflare suggesting its new option is at least 10% cheaper than Amazon S3 Standard. S3 Standard is the default and most expensive option on AWS, but other storage classes are significantly cheaper. Pratyaksh Singhsoftware development engineer at BukuWarung, comments:

It is quite exciting and economical. The API is compatible with AWS S3 and from the examples it looks like you only need to change the endpoint when creating the S3 client in your code. Although R2 lets you specify a region, the only option is auto. R2 can be easily paired with Cloudflare’s Edge Workers compute platform (which is isolate-based).

The current version of R2 automatically selects a bucket location in the closest available region and does not yet support object lifecycles, live migration without downtime, or jurisdictional restrictions. Cabral adds:

While we don’t plan to support regions explicitly, we know that data locality is important for many compliance use cases. Jurisdictional restrictions will allow developers to define a jurisdiction such as “EU” which would prevent data from leaving the jurisdiction.

R2 pricing is based on the total amount of data stored and two classes of operations, “mute state” and “read existing state”. There are no exit fees, and the free tier includes 10 GB of storage.

Following the R2 Object Storage GA, Cloudflare introduced the ability to store and retrieve Cloudflare logs on R2. In a “GA week“, the content delivery network announced Cloudforce Onea threat research and operations team, and Cloudflare Adaptive DDoS Protectiona traffic profiling system to mitigate DDoS attacks.

Margie D. Carlisle