TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Replacing AWS S3+CloudFront with Cloudflare R2?

5 pointsby janpioabout 2 years ago
We serve a few hundred TB of data via AWS S3 with Cloudfront in front of it each month, which costs us quite a lot of money for the data transfer. Cloudflare R2 seems to be the perfect alternative, with their S3 compatible API, egress being free [1] and the ability to put a custom domain in front of the bucket - which then activates Cloudflare CDN [2] for optimized latency (which is then equivalent to using Amazon&#x27;s Cloudfront).<p>Has someone here done this before and can share their experience?<p>I am specifically interested in the latency aspect. S3+Cloudflare has been excellent there, and I would love to understand if we would take a significant hit by migrating to Cloudflare R2.<p><pre><code> [1] https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;r2&#x2F;pricing&#x2F; [2] https:&#x2F;&#x2F;developers.cloudflare.com&#x2F;r2&#x2F;buckets&#x2F;public-buckets&#x2F;#custom-domains</code></pre>

3 comments

tiernanoabout 2 years ago
I use it for my own small instance of Mastodon (<a href="https:&#x2F;&#x2F;s.o2l.ie" rel="nofollow">https:&#x2F;&#x2F;s.o2l.ie</a>). Looks like I have about 30GB of data in there... not a massive amount of bandwidth either (looks like around 200Mb over the last 7 days). But, it was easy to set up, and I think my last bill was around 23 cents for the month... AWS calculator is coming in at around $2 per month...
re-thcabout 2 years ago
Where is your target audience? US based? Do note that Cloudflare non business &#x2F; enterprise plans get deprioritized and also get re-routed to certain major ISPs e.g. in Taiwan, Australia, Argentina, etc.<p><a href="https:&#x2F;&#x2F;www.cdnperf.com" rel="nofollow">https:&#x2F;&#x2F;www.cdnperf.com</a> there&#x27;s also this for a point of reference.
评论 #35244030 未加载
robertcopeabout 2 years ago
Seems like the way to know for sure is to test it. Wouldn&#x27;t seem like it&#x27;d be hard to do that, especially if you have access to Catchpoint or something similar.
评论 #35239239 未加载