Ask HN: Cheapest/easiest way to host a static site?
451 pointsThis is more of a thought experiment, I know a multitude of ways to do this which require loads of setup, jumping through AWS hoops, etc. I'd like ideally way to deploy to a hosted service with a single command. Imagine Heroku but even easier.
Comments (487) 172 threads
Earlier commentsHere’s my setup with Zola: https://seanharrison.org/postgrails/20200523-got-zola/
A couple notes about setting up DNS since the gitlab instructions weren’t 100% clear to me: https://seanharrison.org/postgrails/20200720-gitlab-pages-dn...
I understand what you're saying, but why? I assume the site in question is pretty low volume. What's wrong with serving directly from S3?
Also you get a little bit of protection from someone sending lots of traffic to make you spend $$$
https://news.ycombinator.com/item?id=26600816
Continue this thread — 4 replies
Putting it being a CDN protects you (at least a little bit) from the possibility of a huge bandwidth bill at the end of the month if someone realizes they can attack your wallet directly by trying to ddos your site.
Continue this thread — 3 replies
It adds up to 600ms of latency for each roundtrip. A modern website without link rel=preload is several roundtrips– download HTML page, then do JS requests and CSS, so that's ~1.2s of additional latency.
Because he succumbed to AWS' marketing. Surge, mentioned downthread, lets you deploy a folder for free on a worldwide CDN with virtually no setup.
Continue this thread — 2 replies
He clearly needs kubernetes.
Continue this thread — 1 reply
I have a system doing 10s-100's of millions of reads a day from s3 with very consistent and fast read times.
If you are hosting a website in s3, please put a CDN with gzip support in front.
I mean, if there's a chance, however remote, that you might end up as the #1 of reddit or whatever, stay away from S3. Your site won't go down, but oh god, you pay for that.
https://aws.amazon.com/cloudfront/pricing/
If AWS + CloudFront is too difficult and you don't mind spending a few bucks, it's pretty easy to get started with LightSail - about $3.50 a month.
You don't even need to create an account, just upload a zip of your files.
All comments shown.
Couldn't load more comments. Check your connection and try again.