Ask HN: Clever ways to run a media-heavy website on a budget?
I've been taking a break from working to relax and visit some friends in a few countries. So I don't have a lot of money, but with my newfound free time, I've been inspired to take a shot at a few ideas I've always wanted to build.
One idea is particularly media heavy. I have 5+ TB of media that I'd like to build something around.
Services like S3 are pretty expensive, especially bandwidth. Backblaze has been trying to market their storage solution (https://www.backblaze.com/b2/cloud-storage-pricing.html) against S3.
But I can get even cheaper by using low quality hardware and bandwidth like Kimsufi's 2TB machines for $10/mo (https://www.kimsufi.com/en/servers.xml).
Does anyone have another ideas for stretching a dollar?
98 comments
[ 3.5 ms ] story [ 184 ms ] threadI have a site set up like that which serves over 1TB monthly and <5GB of it actually goes through to S3. (And obviously you don't have to use s3 to back it, you can use anything)
Bonus points: If you do it this way you can also use immutable caching for clientside savings. More info: https://hacks.mozilla.org/2017/01/using-immutable-caching-to...
This may be dependent on how large your media is however. 5TB sounds like it could be large videos, so some of this may not apply to you. I don't know how well Cloudflare caches videos.
> I don't know how well Cloudflare caches videos.
It's cache files only under 512MB:
https://support.cloudflare.com/hc/en-us/articles/200394750-W...
Here's a screen cast I did a while back exploring HLS: https://www.youtube.com/watch?v=v9TJuWT5sNM&t=6m27s
Serve the static web-page files from a decent host. Seed the 5tb of content from the cheap host.
a. Unlikely, where have you seen this before?
b. A reasonable price to view the page.
https://docs.aws.amazon.com/AmazonCloudFront/latest/Develope...
Edit: Seemingly it could be free, but you must manually handle your certs to some degree.
Edit 2: Cloudfront now comes with "AWS Shield Standard" automatically to protect from DDOS?
Please tell us some more about your idea.. cos if it’s video, much of the below is moot.
On one hand specifying that literally only HTML can be hosed through the platform whilst simulataneously suggesting that caching other content is fine, as long as it’s not “disproportionate” (but disproportionate to what?).
“SECTION 10: LIMITATION ON NON-HTML CACHING You acknowledge that Cloudflare’s Service is offered as a platform to cache and serve web pages and websites and is not offered for other purposes, such as remote storage. Accordingly, you understand and agree to use the Service solely for the purpose of hosting and serving web pages as viewed through a web browser or other application and the Hypertext Markup Language (HTML) protocol or other equivalent technology. Cloudflare’s Service is also a shared web caching service, which means a number of customers’ websites are cached from the same server. To ensure that Cloudflare’s Service is reliable and available for the greatest number of users, a customer’s usage cannot adversely affect the performance of other customers’ sites. Additionally, the purpose of Cloudflare’s Service is to proxy web content, not store data. Using an account primarily as an online storage space, including the storage or caching of a disproportionate percentage of pictures, movies, audio files, or other non-HTML content, is prohibited. You further agree that if, at Cloudflare’s sole discretion, you are deemed to have violated this section, or if Cloudflare, in its sole discretion, deems it necessary due to excessive burden or potential adverse impact on Cloudflare’s systems, potential adverse impact on other users, server processing power, server memory, abuse controls, or other reasons, Cloudflare may suspend or terminate your account without notice to or liability to you
Note: No affillation, but I've had a few small VPS'es with the. Very reliable shop.
Obviously going to have to compromise (round robin dns > ~1gbps, self managed stuff), but thats just expected If it's just images probably just go with cloudflare
Not necessarily the most reliable provider but hard to beat the prices, especially for their larger servers.
Since you said you were working with media, a vps will probably have pretty poor performance if you're doing any transcoding or the such.
That puts 5TB storage at $24/mo.
They claim they're 6x faster than S3 but I'll bet it's 20 times slower with latency unless they have a Sydney datacentre.
You'd think this is info they'd put somewhere findable on their website.
> If your use case creates an unreasonable burden on our infrastructure, we reserve the right to limit your egress traffic and/or ask you to switch to our Legacy pricing plan. Wasabi’s hot cloud storage service is not designed to be used to serve up (for example) web pages at a rate where the downloaded data far exceeds the stored data or any other use case where a small amount of data is served up a large amount of times.
https://wasabi.com/pricing/pricing-faqs/
https://robot.your-server.de/order/market
I am paying 30 EUR/month for a machine with an older generation i7 CPU, 24 GB of RAM, 2x750 GB HDD and 20TB of monthly traffic. The price is close to the electricity cost if I were to host the machine in my home. During these 5 years the machine had not a single downtime.
I've read stories that they had lousy tech support, but can't confirm, since I never needed it.
Overall I had a great experience with them so far, so I also recommend them whenever I can.
They are worth it even if you have trouble, though. Just make sure you have a backup plan.
My server is something I built myself, and contains about 30TB of media storage (FreeBSD ZFS setup), plus NVMe SSDs for database.
Unlimited bandwidth, unlimited storage, and super fast.
Holy crap is it fast.