News for hackers. Stuff that matters.
Re:Chess, but neither player moves first by danuker on Monday November 14, 2022 @07:03PM (#33603270)
Even my dedicated Apache server threw errors for static pages every now and then, when serving gigabytes per hour.
Re:Chess, but neither player moves first by ummonk on Monday November 14, 2022 @07:10PM (#33603353)
It’s trivial to survive HN traffic with a static site (assuming you know in advance that the site needs to be prepared for HN traffic) - just stick it behind a CDN.
Re:Chess, but neither player moves first by pifm_guy on Monday November 14, 2022 @07:25PM (#33603492)
I found HN front-page to still be less than about 1 user action per second. Ie. Pageload.

That means if your site loads fast, you typically won't ever be serving more than a single user at once, so unless you're serving it on a burstable CPU and you run out of burst capacity, you should be fine.

Re:Chess, but neither player moves first by nicoburns on Monday November 14, 2022 @08:27PM (#33604063)
Yeah, my site which is hosted on fly.io's smallest VM with 256MB RAM and only part of a CPU core was on the HN front page the other day and I was surprised to see that it barely even registered the resource usage: consuming just 50MB RAM with a 0.2 load average.

It is a fairly simple webpage, and it's rendered in Rust so it's probably more efficient than most. And perhaps it didn't get as much traffic as other things on the front page, but I was still expecting worse given how much some sites seem to struggle.

Re:Chess, but neither player moves first by danuker on Monday November 14, 2022 @08:07PM (#33603861)
Re:Chess, but neither player moves first by ummonk on Monday November 14, 2022 @11:10PM (#33605163)
Then use a performant webserver like Nginx and beef up your server hardware.
Re:Chess, but neither player moves first by nathell on Monday November 14, 2022 @09:26PM (#33604496)
I host my static sites on a single cheap VPS from Scaleway, and it handles frontpage HN traffic just fine without CDNs.
Re:Chess, but neither player moves first by jsjohnst on Monday November 14, 2022 @09:41PM (#33604577)
> It’s trivial to survive HN traffic with a static site

It’s fairly trivial to survive HN traffic, full stop. I’ve seen the RPS live from several “#1 on homepage” posts with hundreds of comments (let alone upvotes) and as another commenter stated, it’s at most single digit requests per second.

Re:Chess, but neither player moves first by nicoburns on Monday November 14, 2022 @08:20PM (#33604003)
Isn't Apache infamously slow? If you're serving a lot of traffic I'd consider switching to a faster server (nginx or similar).
Re:Chess, but neither player moves first by nomel on Monday November 14, 2022 @10:42PM (#33604988)
> If you're serving a lot of traffic I'd consider switching to a faster server

I don't think anyone with a small personal site should spend too much time planning for that single, improbable, day when traffic might increase by several orders of magnitude.

With most hosts I've had, that type of increase would just trigger DDOS protection and/or take down the site with its itty bitty quota limits.

Re:Chess, but neither player moves first by julian_sark on Tuesday November 15, 2022 @02:29AM (#33606306)
1. host website with AWS

2. Get featured on HN

3. Suddenly Jeff can hire all the folks back he's laying off, from the bandwidth proceeds.