News for hackers. Stuff that matters.
Re:Ask HN: How much does it cost to run Hacker News? by xuki on Thursday December 29, 2022 @05:56AM (#34171427)
I lol-ed at this. A few years ago, someone said it runs as a single process on 1 core and use no database, everything is written to filesystem.
Re:Ask HN: How much does it cost to run Hacker News? by andai on Thursday December 29, 2022 @06:12AM (#34171516)
Two years ago I emailed HN to ask why favoriting posts is rate limited. Got the reply, "HN's main software runs on a single core."

They also said they are working on an overhaul of Arc and HN, which will massively improve performance.

Re:Ask HN: How much does it cost to run Hacker News? by hackernewds on Thursday December 29, 2022 @06:26AM (#34171588)
Re:Ask HN: How much does it cost to run Hacker News? by tjoff on Thursday December 29, 2022 @06:31AM (#34171611)
Nothing in that thread or linked threads provides anything that contradicts that statement that I could find.

Please be more descriptive so that people actually get your point.

Re:Ask HN: How much does it cost to run Hacker News? by andai on Thursday December 29, 2022 @07:09AM (#34171842)
NGINX does the heavy lifting, and can utilize many cores.
Re:Ask HN: How much does it cost to run Hacker News? by mrighele on Thursday December 29, 2022 @06:26AM (#34171584)
HN started as a project to experiment [1] with the Arc Language [2], so it doesn't surprise me that it used static files as a storage.

I wondering what is the stack these days though.

[1] http://paulgraham.com/hackernews.html [2] http://arclanguage.org

Re:Ask HN: How much does it cost to run Hacker News? by moffkalast on Thursday December 29, 2022 @06:31AM (#34171610)
That is what I'd expect it to still be tbh, if the responsiveness is anything to go by.
Re:Ask HN: How much does it cost to run Hacker News? by neysofu on Thursday December 29, 2022 @06:17AM (#34171540)
Is that supposed to be a good thing?
Re:Ask HN: How much does it cost to run Hacker News? by makapuf on Thursday December 29, 2022 @06:22AM (#34171565)
If it provides the correct features and runs correctly, simpler is better. To me, simpler to run, understand, backup, deploy, recover goes in the right direction.
Re:Ask HN: How much does it cost to run Hacker News? by xuki on Thursday December 29, 2022 @06:30AM (#34171599)
In my opinion, yes. It's simple to run, simple to back up, simple to migrate to a new server, upgrade path is straightforward (find the fastest single core CPU).
Re:Ask HN: How much does it cost to run Hacker News? by sph on Thursday December 29, 2022 @06:57AM (#34171764)
Would it make your experience as a user better if the data was stored in a schema-less distributed database instead of saved to file? Would you browse it more often? If you had to pay for it, would you pay more money?

Because at the end of the day, none of those decisions matter, and sometimes the crappy, inelegant solution is cheaper and more understandable to the ones running it for almost two decades.

Re:Ask HN: How much does it cost to run Hacker News? by neysofu on Friday December 30, 2022 @09:16AM (#34185169)
Oh, I'm not debating the impact such a decision has on users, but rather on development experience and ops.

> schema-less distributed database instead of saved to file

I was actually going to suggest SQLite.