Cloudflare just announced Cloudflare R2, a cloud object storage service with some incredible features. Keep in mind, it is currently in early access so we don’t know everything yet.
Cloudflare R2 promises to solve three main problems that make incumbent providers like Amazon S3 more complicated:
It also offers a supposedly easy migration from S3-compatible storage buckets, and automatic replication of “blobs” across the world. It has quickly become a competitor to other cloud object storage vendors.
In this post, I’m going to cover the following:
“R2” is a clever play on the name styling of Cloudflare R2’s main incumbent competitor, Amazon S3, which stands for Simple Storage Service. At this point we think it will officially be a stand in for “Rapid” and “Reliable”, but according to Cloudflare, R2 is also a stand in for any one of the following:
The real question is: “which vendor will be first to launch Q1 Cloud Object Storage?” 😝
If you think we're on to something, you just might be able to launch the next big thing with the help of object-storage-name-generator.com
Right now, Cloudflare R2 has cheaper and simpler pricing than several incumbent cloud services like Amazon S3 and Azure Blob, but is still well behind others on raw storage cost. When comparing Cloudflare R2 to Backblaze B2, Wasabi or Storj DCS, R2 is about 3 times more expensive for storage.
However, $0.015 per GB is not necessarily a deal-breaker here. Cloudflare R2 might shine better than other Amazon S3 alternatives when it comes to egress and read/write operations.
At this point, we will take Cloudflare’s word for it: Egress will be zero cost. But, Backblaze B2 and Wasabi also have a bit of an answer to R2’s “zero egress”, which we cover in the next section.
Cloudflare has also given itself wiggle room when it comes to the cost of read/write operations, although it’s implied that whatever it does should be very developer-friendly.
“R2 will zero-rate infrequent storage operations under a threshold — currently planned to be in the single digit requests per second range. Above this range, R2 will charge significantly less per-operation than the major providers.” - Cloudflare
Note that Cloudflare in their R2 launch post said “infrequent” storage operations, without specifying what those are and the rules that apply. (Author's Note: We changed this paragraph based on an observant comment made on HN that pointed to a miscalculation)
At a high level, the use cases that would suit Cloudflare R2 best are those where bandwidth costs are big enough to outsize the benefit of working with a provider with 3x cheaper storage, like Backblaze and Wasabi, who incidentally are part of the Bandwidth Alliance championed by Cloudflare that offers zero egress fees relevant to some (not all!) use cases*.
*Using Backblaze and/or Wasabi via Cloudflare CDN is limited: You can’t serve large amounts of media unless you’re paying more for your usage. The CEO at Cloudflare specified that these restrictions would not apply to Cloudflare R2 (Terms of service link here, Hacker News comment here).
In order, here are the use cases that are most likely going to see huge improvements from moving to Cloudflare R2. Note that they are reading-heavy use cases:
Before I go any further, here’s a link to the waitlist for Cloudflare R2.
According to a recent Discord Q/A with the Cloudflare workers team, Cloudflare R2 is going to be deeply integrated with Cloudflare Workers.
This integrated compute layer can act like a proxy to enable “slurp mode”. Workers would handle the request for an object. If the object isn’t already in Cloudflare R2, they would request the object from Amazon S3 and store it in Cloudflare R2.
While other capabilities are still unknown, Cloudflare workers would likely be able to manage:
The Cloudflare workers integration with R2 will not be as strong as the AWS Lambda integration with S3. For more information on how they compare, check out the feature comparison of Cloudflare R2 vs Amazon S3.
We don’t know everything yet. However, seemingly ideal customers for Cloudflare R2 should hesitate to switch because of two reasons:
* Wasabi will charge you for a minimum of 3 months of storage for any uploaded data. For example, if you upload a file and then delete it within 1 month, you’ll get charged for the remaining 2 months.
We don’t know everything yet. However, some potential customers should probably stay or pick with another provider if the following applies:
"As for bandwidth, CloudFlare becomes uninteresting the moment your account starts to see any real consumption, even AWS are easier to negotiate with." (View Comment)
Our take: Fair enough. We’ve helped several companies get discounts from Amazon S3 or Amazon CloudFront CDN anywhere from 5 to 15%. AWS is willing to play ball and is aggressively fighting for enterprise customers.
"There is one major reason S3 remains the king of storage for mobile media uploads: bucket notifications. Does R2 implement this feature? If so, I’m going to have to run some experiments with this…" (View Comment)
Our take: As some other HN users commented, Amazon S3 is loaded with features, particularly in the area of “eventing”. For example, if you wanted to trigger a Lambda off of an event on Amazon S3, you can!
If Cloudflare R2 lacks eventing it's going to be too much of a drawback for any use case that requires real-time workflows triggered off of bucket events.
"How will other providers respond to this now? AWS, GC, and others do not really pay for egress charges themselves. Those super high egress charges are pretty ridiculous." (View Comment)
Our take: There's a lot of margin here for the behemoth cloud providers to play with and they can respond quickly. We should stay tuned for changes if Cloudflare R2 manifests itself as a real threat post-launch.
We love chatting with developers about the future of cloud, and cloud object storage in particular. If you want to riff on a decision you're looking to make, drop us a line here: [email protected]