4 ms·
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,
by cube2222 3y ago
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 https://opentofu.org
[1]: https://github.com/opentofu/registry https://github.com/opentofu/registry
- EE84M3i 3y agoIs 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?
- adobrawy 3y agoThey updated TOS to enable proxing R2 via CDN with cache enabled: https://blog.cloudflare.com/updated-tos https://blog.cloudflare.com/updated-tos
- ignoramous 3y ago> 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/ https://blog.cloudflare.com/cloudflare-r2-super-slurper/). That brought our costs down from $500 to $2 serving the same amount of traffic.