News for hackers. Stuff that matters.
Re:A bit of math around Cloudflare's R2 pricing model by sfredd on Thursday September 30, 2021 @12:05AM (#28703058)
Cloudflare will charge per request over a certain threshold, like S3 does for API calls, so it won’t be just 13 cents depending on the rate of requests coming in.

“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. Our object storage will be extremely inexpensive for infrequent access and yet capable of and cheaper than major incumbent providers at scale.”

Source: https://blog.cloudflare.com/introducing-r2-object-storage/

Re:A bit of math around Cloudflare's R2 pricing model by dannyw on Thursday September 30, 2021 @12:16AM (#28703118)
Per operation charges, even if at the same level as EC2, would still be substantially cheaper.

The lack of 9c per GB to egress is the killer.

I can rent unlimited 250mbit servers for 14 euros a month from Scaleway. It is truly unmetered; I've been a customer for years and do about 40 terabytes of egress a month on this box.

AWS would charge me $3800 for the egress alone (using the calculator). That is certainly almost all pure margin for them, when Scaleway will happily let me egress 40TB a month for years on 13.99 euro per month (plus I get a low-spec bare metal server at this price too).

Re:A bit of math around Cloudflare's R2 pricing model by judge2020 on Thursday September 30, 2021 @01:02AM (#28703368)
> That is certainly almost all pure margin for them,

Yes. While there is a pretty hefty up-front cost to all the hardware and fiber interconnects AWS makes between servers, between AZs, and to the internet (probably in the millions per-dc including labor), the margin they charge per-gb is insanely high to the point where they likely made all of it back within the first day it was installed, with any extra usage in the years after being pure margin.

https://blog.cloudflare.com/aws-egregious-egress/

Re:A bit of math around Cloudflare's R2 pricing model by celsoazevedo on Thursday September 30, 2021 @01:08AM (#28703393)
> I can rent unlimited 250mbit servers for 14 euros a month from Scaleway.

If we're looking only at egress, we can even find cheaper alternatives. OVH, for example, offers VPS' with 500Mbps unlimited for 10 euros a month, 1Gbps for 20 euros, etc.

Re:A bit of math around Cloudflare's R2 pricing model by bierjunge on Friday October 01, 2021 @06:25AM (#28716623)
I have a small Hetzner Cloud VPS with 20TB egress 100Mbps included for about 3€/month. The prices for new instances got up a few weeks ago, because of IPv4 prices, but they are still about 4€.

It's not unlimited, but 20TB is more than enough for the most use cases.

Re:A bit of math around Cloudflare's R2 pricing model by nobleach on Thursday September 30, 2021 @10:47AM (#28706929)
I wish this were available in the US...
Re:A bit of math around Cloudflare's R2 pricing model by vel0city on Monday October 04, 2021 @12:51PM (#28749293)
There are VPS providers in the US that offer unmetered bandwidth. One quick example I could think of was Hostgator.

https://www.hostgator.com/vps-hosting

Re:A bit of math around Cloudflare's R2 pricing model by behrlich on Tuesday October 05, 2021 @11:15AM (#28760577)
> For example, customers who are using 25% or more of system resources for longer than 90 seconds would be in violation of our Terms of Service. Please see our Terms of Service or contact us with any questions.

Not really...

Re:A bit of math around Cloudflare's R2 pricing model by vel0city on Tuesday October 05, 2021 @12:29PM (#28761669)
I'm not sure where that quote comes from (its usually useful to provide a link to what you're quoting) but their VPS ToS does not list any network limits. As long as you're not 2x overloading the CPU on your VPS for more than 15min average it looks like you really do have unlimited bandwidth. I'm wondering if you were looking at their Shared Hosting?

https://www.hostgator.com/tos/vps-tos

VPS accounts may not:

exceed a 15 minute load average greater than two (2) times the amount of CPU cores given.

run public IRCd's or malicious bots.

run any type of BitTorrent client or tracker that links to or downloads illegal content.

use an Open/Public proxy, or utilize a proxy to access illegal/malicious content.

se I/O intensive applications which adversely affect normal server operations.

I do see they have a bit of a vague way of getting out of hosting you if you're really being excessive on the network throughput. It largely sounds like as long as your network usage isn't causing other customer impacts its still unlimited. I imagine even OVH or any other hosting service will have similar terminology along the lines of any usage that negatively impacts other customers is prohibited.

https://www.hostgator.com/tos/acceptable-use-policy

You may not consume excessive amounts of server or network resources or use the Services in any way which results in server performance issues or which interrupts service for other customers. Prohibited activities that contribute to excessive use, include without limitation:

Hosting or linking to an anonymous proxy server;

Operating a file sharing site;

Hosting scripts or processes that adversely impact our systems; or

Utilizing software that interfaces with an Internet Relay Chat (IRC) network.

Re:A bit of math around Cloudflare's R2 pricing model by behrlich on Tuesday October 05, 2021 @03:25PM (#28764376)
The quote is from the “information” icon next to “Unmetered bandwidth” on the page you posted.
Re:A bit of math around Cloudflare's R2 pricing model by celsoazevedo on Thursday September 30, 2021 @11:37AM (#28707587)
There's two locations in the US (only available via the US website/OVHcloud - I think) and at least one in Canada.
Re:A bit of math around Cloudflare's R2 pricing model by tyingq on Thursday September 30, 2021 @11:34AM (#28707561)
Re:A bit of math around Cloudflare's R2 pricing model by nobleach on Thursday September 30, 2021 @02:46PM (#28709675)
My apologies. I meant Scaleway. I was looking more for the k8s integration.
Re:A bit of math around Cloudflare's R2 pricing model by tyingq on Thursday September 30, 2021 @02:55PM (#28709841)
Ah. Ok. There's this: https://us.ovhcloud.com/public-cloud/kubernetes/

Though I don't know how well it compares.

Edit: pricing: https://us.ovhcloud.com/public-cloud/prices/#containers-and-...

Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @01:00AM (#28703352)
Lack of egress charge is great for write once, read a lot.

But for write once, read a handful of times (e.g. a webhook system that basically is write once, read once of <32KB objects with long history for either redelivery attempts or replaying the entire stream for a point of time), request prices end up being the biggest cost.

Re:A bit of math around Cloudflare's R2 pricing model by l-lousy on Thursday September 30, 2021 @05:43AM (#28704593)
Not if, as R2 says, they only charge for objects that exceed a single digit request per second threshold. Your write once read once model still only costs as much as the storage at rest would.
Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @09:00AM (#28705774)
I don’t think they mentioned this would be “per object” and I assumed they meant per account.

Free per object requests is super game-able. Want 1000 free requests per second, just rotate through 100 identical objects.

Re:A bit of math around Cloudflare's R2 pricing model by piaste on Thursday September 30, 2021 @03:08PM (#28710045)
But then you're multiplying your storage costs 100x, aren't you?
Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @03:48PM (#28710496)
Which are often significantly lower than request (and egress) charges.

1,000 reads per second is 2.6 billion per month. At S3 prices, that wound cost around $1,040.

100x storage is pretty minimal to achieve this. For example:

100x 128KiB = $0.000192/month

100x 10MiB = $0.015/month

100x 1GiB = $1.50/month

Re:A bit of math around Cloudflare's R2 pricing model by sfredd on Thursday September 30, 2021 @12:22AM (#28703159)
Not disagreeing with you! Just pointing out that there will be additional costs over just 13 cents. Excited to check out R2.
Re:A bit of math around Cloudflare's R2 pricing model by prirun on Thursday September 30, 2021 @03:18PM (#28710175)
Even on S3, operations costs are a very tiny fraction of bandwidth costs:

https://aws.amazon.com/s3/pricing/ https://www.backblaze.com/b2/b2-transactions-price.html

Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @12:20AM (#28703150)
Yeah, read and write request pricing is still the big unanswered question here.

It’s great that they are happy to have a free tier, but <10RPS is only <777k per day constant. Great for small uses, but pretty easy to hit with even medium object store use-cases.

My current guess would be somewhere around S3’s $5/million writes and $0.40/million reads (with maybe a 20% discount like they’ve done with other products). Hope I’m wrong and it’s a lot lower though.

I’m probably in the minority, but I want to use an object store like this as a key/value store for <128KiB objects (write once, read a handful of times and then expire in 14-90 days).

I’d gladly pay egress, but usually the request prices (for S3 or DynamoDB) become pretty cost-prohibitive. Even services like Wasabi that, on the face of it look perfect, end up being unsuitable because the T&Cs limit maximum egress to total monthly storage volume (making the write once, read more than once for every short-lived object pretty difficult).

I’d gladly pay for a service with both “reasonable” egress and “reasonable” request prices instead of everyone trying to weight their service to one or the other.

Re:A bit of math around Cloudflare's R2 pricing model by renewiltord on Thursday September 30, 2021 @03:38AM (#28704026)
I just stored a few large objects to pad the space on Wasabi. The S3 compatibility was the feature.
Re:A bit of math around Cloudflare's R2 pricing model by babelfish on Thursday September 30, 2021 @12:25AM (#28703169)
Check out Cloudflare Workers KV or Durable Objects :-)
Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @12:35AM (#28703233)
Sorry, should've specifically mentioned them.

Workers KV is also $5/million writes and $0.50/million reads[1] (more expensive than S3 which is $0.40/million reads) and often DynamoDB (which is $1.25/million 1KB writes and $0.25/million reads scaling down to 1/7th that if you use provisioned instead of on-demand).

Workers KV is also eventually-consistent with no guarantee of read-after-write, which is a pretty big limitation compared to alternatives (S3 even has immediately-consistent list operations now after write).

Durable Objects Storage is $1/million writes at 4KB and $0.20/million reads[2], which is pretty good. But you can also only access it via a Durable Object which limits its usage (especially as neither Durable Objects or its storage are in a production state with final pricing yet) and means you need to also pay for the Durable Object runtime on top fo the Storage pricing whenever you want to access that data.

[1] https://developers.cloudflare.com/workers/platform/pricing#p...

[2] https://blog.cloudflare.com/durable-objects-open-beta/

Re:A bit of math around Cloudflare's R2 pricing model by londons_explore on Thursday September 30, 2021 @01:12AM (#28703403)
> But you can also only access it via a Durable Object which limits its usage

Presumably with not-a-lot of code you could write a Durable Object to have an S3 compatible API...

Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @01:20AM (#28703455)
It wasn't the code that was the issue (and you probably wouldn't want an S3 compatible API). It's that on top of the Durable Store pricing, you need to pay for the $0.15/million requests + $12.50/million GB-sec processing + $0.09/GB data transfer.

Given the point of R2, the fact there's $0.045/GB ingress + egress data transfer (which has been recently reduced from $0.09) when using Durable Objects.

Given the original comment is basically about egress being too expensive therefore R2 is offering to for free, Durable Objects' Store isn't a particularly good alternative to just using S3 or DynamoDB unless you're already using Workers/Durable Objects.

Re:A bit of math around Cloudflare's R2 pricing model by qeternity on Thursday September 30, 2021 @03:49AM (#28704069)
Out of curiosity what is your use case? What is S3 latency compared to Dynamo?
Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @04:34AM (#28704277)
Pretty similar really. Latency is much less important than throughput for all of my use-cases.
Re:A bit of math around Cloudflare's R2 pricing model by Something1234 on Thursday September 30, 2021 @12:34AM (#28703224)
And why doesn't something like dynamo work perfectly for this?
Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @12:48AM (#28703288)
I love DynamoDB for a lot of things, but as a store for objects much larger than 1KiB it's not very cost-effective.

DynamoDB writes are priced per WCU.

A WCU will give you 1KiB written to the DB.

In On Demand, WCUs cost you (depending on region) $1.25/million writes. For Provisioned capacity, you pay about 1/7th that (but need to deal with keeping the Provisioned capacity and auto-scaler at the correct level, so in practice you can maybe get this to about 25-35% the On Demand rate when you know what your usage looks like, with further discounts for actually reserving capacity).

If you're writing 32KiB objects, this uses 32x WCU ($40/million writes) and if these objects are even updated (e.g. to change a status or similar), the update writes the entire object again.

On a performance/architecture note, DynamoDB has a hard per-partition limit of 1,000 WCU (per second). Writing larger objects can very quickly get you to these limits which increase your architectural complexity by requiring you to shard access.

Although, in practice you'd never write large objects to DDB. S3 is _only_ $5/million writes (and $0.023/GB/month vs $0.25/GB/month for DDB). If you're writing even 3+ KB (especially if you expect to need to update an item in the future) it's usually more cost effective to store these blobs in S3.

But either way, you're still going to be paying at least $5/million write requests. For multi-MB blobs, this is a non-issue. But for a K/V store of smallish objects, I think it's pretty expensive.

Re:A bit of math around Cloudflare's R2 pricing model by londons_explore on Thursday September 30, 2021 @01:07AM (#28703388)
I really want to not need to care about object sizes. Whether I'm writing 1 byte or 1 gigabyte, I want to have the same semantics, same API, and same sane billing model.

The underlying tech can differ depending on object size, but as a user, I want it to all transparently look like one unified store.

Re:A bit of math around Cloudflare's R2 pricing model by kondro on Thursday September 30, 2021 @01:16AM (#28703426)
Me too… but I don't think anything really does this.

_Maybe_ Firebase Store for certain scenarios, but it has its own tradeoffs too.

Re:A bit of math around Cloudflare's R2 pricing model by manigandham on Thursday September 30, 2021 @07:20PM (#28712471)
That's what object stores are.
Re:A bit of math around Cloudflare's R2 pricing model by QuinnyPig on Thursday September 30, 2021 @12:20AM (#28703142)
Yeah, I ignored request charges just because CloudFlare was non-specific. I also ignored them on the AWS side; a million S3 GET requests would cost 40¢.
Re:A bit of math around Cloudflare's R2 pricing model by eastdakota on Thursday September 30, 2021 @12:25AM (#28703174)
We’re still finalizing per request pricing. But we want to not charge anything in most cases (<1 op/sec). And even over threshold it will be at least 10% less than S3’s per op price.
Re:A bit of math around Cloudflare's R2 pricing model by QuinnyPig on Thursday September 30, 2021 @12:29AM (#28703193)
That makes sense and is fair. The only times I encounter clients with S3 request pricing problems is when they’re doing something truly… unfortunate.
Re:A bit of math around Cloudflare's R2 pricing model by ksec on Thursday September 30, 2021 @05:07AM (#28704418)
I am wondering how does request per second works with open connection. Doesn't that means you could have file hosting and get free bandwidth as long as the proxy infront of it only allows 10 Request per second to R2?
Re:A bit of math around Cloudflare's R2 pricing model by DoctorOW on Thursday September 30, 2021 @04:33AM (#28704268)
Keep in mind in this thread's example, there are a million downloads in one month. Spread evenly this is less than 1 RPS.