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.

Set up a practically free CDN

399 pointsby frogger8over 3 years ago

22 comments

onphonenowover 3 years ago
Some caution with cloudflare:<p>Because they give a lot away and post blog posts attacking AWS folks think they are cheap. But a lot of their free stuff may be in the marketing budget. The issue here is:<p>1) Their paid offerings for their core product, CDN, does not have a public pricing guide. That&#x27;s a BAD sign if they claim to be competing on price. So we can pretty safely assume their paid service bandwidth charges are NOT the 80X cheaper than amazon despite their claims here.<p>2) They hype their bandwidth alliance. I tried following this up on Azure, it&#x27;s basically all call a sales person &#x2F; maybe you&#x27;ll get a deal type stuff. Smoke and mirrors again.<p>3) If you actually try to use their CDN to serve something high bandwidth (games &#x2F; software updates &#x2F; video streaming) that is going to violate some type of clause which says that the free CDN is not REALLY unlimited.<p>4) Financially they spend a mind boggling amount on sales costs. Between sales costs and cost of sales I think they are negative relative to revenue.<p>BTW - If you try any of the other &quot;free&quot; and &quot;unlimited&quot; providers (for $5&#x2F;month etc) you will also find out once you try to move some real data volumes (video etc) - it&#x27;s all a lie over and over.<p>Same things with geo issues. Cloudflare claims to have &quot;one&quot; price globally. These are almost alwyas false claims. It&#x27;s easy to test - setup a stream into a high cost area, stream a bunch of video there - you&#x27;ll usually get a call over some tricky TOS issue they pull out.<p>In short, if you want pay and forget, there is a reason the big cloud players have a business still.
评论 #29952023 未加载
评论 #29953280 未加载
评论 #29952152 未加载
评论 #29951908 未加载
评论 #29954204 未加载
评论 #29951165 未加载
评论 #30010935 未加载
评论 #29952521 未加载
kondbgover 3 years ago
Using Cloudflare to proxy B2 content seems like it directly violates Cloudflare&#x27;s ToS.<p><a href="https:&#x2F;&#x2F;www.cloudflare.com&#x2F;terms&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cloudflare.com&#x2F;terms&#x2F;</a><p>&gt; 2.8 Limitation on Serving Non-HTML Content<p>&gt; The Services are offered primarily as a platform to cache and serve web pages and websites. Unless explicitly included as part of a Paid Service purchased by you, you agree to use the Services solely for the purpose of (i) serving web pages as viewed through a web browser or other functionally equivalent applications, including rendering Hypertext Markup Language (HTML) or other functional equivalents, and (ii) serving web APIs subject to the restrictions set forth in this Section 2.8. Use of the Services for serving video or a disproportionate percentage of pictures, audio files, or other non-HTML content is prohibited, unless purchased separately as part of a Paid Service or expressly allowed under our Supplemental Terms for a specific Service. If we determine you have breached this Section 2.8, we may immediately suspend or restrict your use of the Services, or limit End User access to certain of your resources through the Services.<p>If this was truly acceptable and not in some grey area, why doesn&#x27;t Backblaze simply route all downloads through Cloudflare by default, rather than having each individual customer go through the hassle of setting this up?
评论 #29951752 未加载
评论 #29950770 未加载
评论 #29952990 未加载
samwillisover 3 years ago
This B2&#x2F;CloudFlare combination is a good one.<p>CloudFlare are about to launch their own object&#x2F;file store with native CDN called R2. They have even come up with a wonderful trick for migrating to it from S3 and it’s looks like it’s going to have an incredible generous level of free egress. I suspect that it will beat out the B2&#x2F;CloudFlare combination once it launches.<p><a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;introducing-r2-object-storage&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;introducing-r2-object-storage&#x2F;</a><p>Edit: Typo
评论 #29949149 未加载
评论 #29948978 未加载
评论 #29949667 未加载
boffinismover 3 years ago
&gt; 440% cheaper than S3 per GB.<p>However the author thinks percentages work.... They are not right.
评论 #29950461 未加载
评论 #29949120 未加载
评论 #29948932 未加载
评论 #29948905 未加载
评论 #29948505 未加载
评论 #29949536 未加载
searchableguyover 3 years ago
Many of the files will violate cloudflare terms of service. You cannot put video files behind normal cloudflare cdn as an example.<p>This is a risky setup.
评论 #29948559 未加载
评论 #29949735 未加载
cjover 3 years ago
I was expecting to read about how to set up the infrastructure to run my own CDN infrastructure for free (hard to believe is possible, so I clicked).<p>Instead, it&#x27;s an article about how to use Cloudflare to deliver static assets for free, on Cloudflare&#x27;s free tier.<p>Edit: I would love to read more about how to set up a cheap self-managed CDN, perhaps using cheap VPS servers spread out in different regions.
评论 #29948759 未加载
评论 #29948549 未加载
评论 #29949907 未加载
评论 #29948729 未加载
评论 #29948869 未加载
jcubicover 3 years ago
You can get literally Free CDN using GitHub repo:<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;jcubic&#x2F;a8b8c979d200ffde13cc08505f7a6436" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;jcubic&#x2F;a8b8c979d200ffde13cc08505f7a6...</a>
ani-aniover 3 years ago
Assuming this is for websites, what&#x27;s the recommended way of handling cache busting with this kind of setup? The article has a slightly awkward paragraph that tells you to set long TTLs for everything and concludes with &quot;tweak these settings&quot;, which kind of sounds like &quot;draw the rest of the owl&quot;. Might be a good reason to use something that integrates all this (eg. Cloudflare Pages, since you&#x27;re already using Cloudflare).
评论 #29949487 未加载
评论 #29949256 未加载
dinklebergover 3 years ago
I know every use case is different, so this may not matter for most. But in my experience, the performance of B2 was quite poor in comparison to other S3 compatible options. It seemed like the crux of the issue was slowness in their API. Generating pre-signed URLs for file upload or download was quite a bit slower, resulting in a poor user experience in my application.<p>If you&#x27;re just using it to upload public static content for your site, this shouldn&#x27;t be an issue. But if you&#x27;re dealing with private content it probably isn&#x27;t the optimal solution.
评论 #30011345 未加载
评论 #29949309 未加载
modelessover 3 years ago
I&#x27;ve been using Cloudflare free in front of App Engine&#x27;s free tier for a few years and it really seems too good to be true. I can go viral and scale to infinity, for exactly $0.
评论 #29950216 未加载
评论 #29950523 未加载
anduru_hover 3 years ago
I&#x27;ve been using BunnyCDN - it&#x27;s been pretty cheap (&lt;$5 month for 250GBs of data transfer).
评论 #29951303 未加载
DoctorOWover 3 years ago
This seems more or less like the B2 help document on the matter: <a href="https:&#x2F;&#x2F;help.backblaze.com&#x2F;hc&#x2F;en-us&#x2F;articles&#x2F;217666928-Using-Backblaze-B2-with-the-Cloudflare-CDN" rel="nofollow">https:&#x2F;&#x2F;help.backblaze.com&#x2F;hc&#x2F;en-us&#x2F;articles&#x2F;217666928-Using...</a>
ggmover 3 years ago
&quot;if everyone does it, they won&#x27;t let you do it&quot; -the infinite cache life on CF only works because 99.99% of use of the cache stays in rational cache lifetimes. If everything had long persist, CF would begin cache ejection, and your cost goes up, or they change the ToS to forbid it.<p>LRU exists for a reason.
aantixover 3 years ago
Interesting setup.<p>And with Rails, it appears that there’s a third party ActiveStorage adapter for BackBlaze.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jeygeethan&#x2F;activestorage-backblaze" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jeygeethan&#x2F;activestorage-backblaze</a><p>Direct uploading from client : <a href="https:&#x2F;&#x2F;github.com&#x2F;jeygeethan&#x2F;activestorage-backblaze-javascript" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jeygeethan&#x2F;activestorage-backblaze-javasc...</a>
评论 #30011391 未加载
punnerudover 3 years ago
Does it support byte-range? so it can be used as a “server free” SQLite database: <a href="https:&#x2F;&#x2F;phiresky.github.io&#x2F;blog&#x2F;2021&#x2F;hosting-sqlite-databases-on-github-pages&#x2F;" rel="nofollow">https:&#x2F;&#x2F;phiresky.github.io&#x2F;blog&#x2F;2021&#x2F;hosting-sqlite-database...</a>
评论 #29950363 未加载
评论 #29952670 未加载
destitudeover 3 years ago
Haven&#x27;t a lot of people on HN warned against using Backblaze for backup because of issues restoring from backup? I recall reading someone having to pay to have a physical drive sent to them to restore a backup because of speed&#x2F;cost issues trying to restore over network.
评论 #29948949 未加载
评论 #29949280 未加载
评论 #29950246 未加载
评论 #29949872 未加载
marcodiegoover 3 years ago
We have a free CDN. It is called bittorrent.
评论 #29949880 未加载
outloudviover 3 years ago
B2-Cloudflare was a great companion when Cloudflare&#x27;s Bandwidth Alliance was a thing and outgress from B2 to Cloudflare didn&#x27;t cost anything, which means that outgress was completely free since Cloudflare don&#x27;t charge on outgress.
评论 #29949495 未加载
评论 #29949023 未加载
评论 #29949003 未加载
sixhobbitsover 3 years ago
I have been very happy with DigitalOcean spaces for $5&#x2F;month including 250GB storage, 1TB outbound, and custom domains. Seems like something more closely comparable to this set up so I am surprised it isn&#x27;t part of the comparison.
aftbitover 3 years ago
I&#x27;ve done this by using Cloudflare Workers. I can confirm that I did not see any bandwidth charges at B2, although I&#x27;ve only tested a few GB of transit. Likely if you tried to host brew here, you&#x27;d get yelled at.
magicjoshover 3 years ago
Is anyone building CDN service on top of IPFS? IPFS is certainly too slow for many applications but perhaps there are tiny niches where it makes sense today? More like tape drive storage?
评论 #29949071 未加载
binarymaxover 3 years ago
I’m looking at wasabi to host some large (500-1000M) distributable binary files. Anyone have experience with them?
评论 #29950572 未加载