News for hackers. Stuff that matters.
Re:Netlify just sent me a $104K bill for a simple static site by cube2222 on Tuesday February 27, 2024 @03:49AM (#39521699)
CloudFlare pricing is indeed positively ridiculous.

At OpenTofu[0] we’re using CloudFlare R2 to host the providers and modules registry[1]. Bandwidth is free, you only pay for requests.

This already would be great, but there’s more - you only pay for requests that actually hit R2. So with an almost 100% cache hit ratio, we barely register any billable requests.

Recently someone decided to load test us and generated ~1TB of traffic over 1-3 days. All but a few of these requests were cached, so the whole situation probably cost us less than a cent.

[0]: https://opentofu.org

[1]: https://github.com/opentofu/registry

Re:Netlify just sent me a $104K bill for a simple static site by EE84M3i on Tuesday February 27, 2024 @04:19AM (#39521926)
Is this in line with the TOS? I thought there were restrictions on serving non-website content in the free tier, or does that not apply to the CDN if you're using R2 as an origin?
Re:Netlify just sent me a $104K bill for a simple static site by adobrawy on Tuesday February 27, 2024 @04:33AM (#39522028)
They updated TOS to enable proxing R2 via CDN with cache enabled: https://blog.cloudflare.com/updated-tos
Re:Netlify just sent me a $104K bill for a simple static site by ignoramous on Tuesday February 27, 2024 @04:58AM (#39522207)
> R2 as an origin

We front our distribution service with Cloudflare Workers fronting R2 fronting S3 / Lightsail Object Store (https://blog.cloudflare.com/cloudflare-r2-super-slurper/). That brought our costs down from $500 to $2 serving the same amount of traffic.