News for hackers. Stuff that matters.
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.