Live data from Hacker News

Static site hosting hurdles

notes.volution.ro

11–20 of 183 posts

Re: Static site hosting hurdles

#13
post #7
post #4

Earlier quoted context omitted.

S3 is not competitive. Here: https://neocities.org/supporter

Competitive by what metric? My site lives more or less entirely within the AWS free tier. I think my total AWS bill is around $20/mo, and 80% of that is for the stupid number of domain names I’m hosting zones for.

Quick question: Why wouldn't I use my free tier registrar DNS? Are there really that man DNS queries serviced cause you pay based off the number of responses? Especially if they are stupid domains.

Re: Static site hosting hurdles

#14
> the cloud operator, given that all of the above choices are self-hosted (or at least require some system administration skills), would immediately go for a hosted solution like CloudFlare Pages, Netlify, Vercel, or one of the source code hosting sites that also have static site hosting solutions like SourceHut pages or GitHub pages;

i think of myself as a graybeard (in the article's parlance; i find the term exclusionary) and i use cloudflare in front of github pages. every year i've spent as this craft has seen me accumulate more than a year's worth of new things i'd like to program or learn, 30 years in the list is very long. spending my time and energy doing IT for a static web site is a major waste

Re: Static site hosting hurdles

#17
post #7

Earlier quoted context omitted.

Competitive by what metric? My site lives more or less entirely within the AWS free tier. I think my total AWS bill is around $20/mo, and 80% of that is for the stupid number of domain names I’m hosting zones for.

Quick question: Why wouldn't I use my free tier registrar DNS? Are there really that man DNS queries serviced cause you pay based off the number of responses? Especially if they are stupid domains.

As far as I can tell, there’s only 2 upsides I’m getting by using AWS as a registrar:

1. I’m lazy, and I already manage a bunch of other stuff in AWS, so it’s convenient for me to have the domains in the same place

2. For some of the domains, I’m serving records that point to other AWS resources (like Cloudfront and S3). AWS’s Route53 has clever helper features when you’re pointing records at other AWS services).

Otherwise, you’re right that there’s plenty of registrars that’ll do perfectly solid DNS

Re: Static site hosting hurdles

#18
There's also HTTP HEAD requests, and "304 Not Changed" that you need to take care of. This is what makes static site download look instantaneous. There's more of such optimizations.

With all these I find it better to stick with old Apache or similar service for speed, rather than a simpler service that only takes care of GET.

Re: Static site hosting hurdles

#19
post #9

don’t forget to add cloudflare workers + r2. the best parts of lambda and s3, without the egress billing.

I've never even worked with lambda and s3, and CF workers and R2 took like 20 minutes for me to learn and set up.

I don't know how they made it so incredibly easy to learn and get going compared to AWS, but every time I try to figure out how to do AWS I get confused and get put off.

Re: Static site hosting hurdles

#20
post #8
post #3

It felt odd to see a doc this comprehensive on static site hosting with no mention of AWS S3/Cloudfront, given how easy it is to push content to an S3 bucket (either manually or via the CI pipeline of your choosing) and then serve it up either direct-from-S3 or via Cloudfront. But then it turns out that this is actually pushing folks towards some new paradigm of static cached HTTP responses instead of files. It pitch…

>We’ve already standardized the hosting side of static sites by using the file system. Worth noting that the incoming younger generations can't and don't into file systems.[1] Yes, anyone who wants to be a webmaster should do their homework, but that is besides the point. We are probably the last generation who can be ubiquitously assumed to have an understanding of files and folders/directories in a computer. [1]: h…

That's fascinating! Young people struggling with files and folders just like my Mom does.
Post reply on HN