News for hackers. Stuff that matters.
Re:How to build a HackerNews Clone using Redis by TylerLives on Friday December 03, 2021 @09:24AM (#29430330)
How much does it cost to run a website like HN?
Re:How to build a HackerNews Clone using Redis by BrianOnHN on Friday December 03, 2021 @09:41AM (#29430512)
A lot using redis as the backend.
Re:How to build a HackerNews Clone using Redis by bogomipz on Friday December 03, 2021 @11:06AM (#29431509)
Why would using Redis add significantly to the cost?
Re:How to build a HackerNews Clone using Redis by _hyn3 on Friday December 03, 2021 @11:09AM (#29431543)
Because Redis' database is stored exclusively in RAM, which is an order of magnitude more expensive than even SSD.

Also, long-term maintenance effort and costs would be substantially higher. (Redis persistent-to-disk options, namely AOF and RDB, are notoriously unreliable.) These issues would persist (ha) even with a clustered setup (actually, especially then.)

Re:How to build a HackerNews Clone using Redis by bertjk on Friday December 03, 2021 @11:51AM (#29432110)
I've never heard of them being unreliable, and certainly not notoriously so. What sources do you have on this? My own impression formed from reading HN is that opinion around Redis is nearly entirely (almost cultish-ly) positive.

I'm just checking if there is something I missed.

Re:How to build a HackerNews Clone using Redis by Eikon on Friday December 03, 2021 @12:26PM (#29432566)
> Because Redis' database is stored exclusively in RAM, which is an order of magnitude more expensive than even SSD.

Maybe, but still very cheap. Unless you are talking about insanely high priced cloud services.

Something like Hetzner would provide you with 128GB of ram for 60 euros / month or 1TB of ram for around 500 euros / month.

Re:How to build a HackerNews Clone using Redis by node-bayarea on Friday December 03, 2021 @05:32PM (#29436453)
Not exactly true. There are things like "Redis on Flash" that redis.com offers for large sets of data. If you enable it, most of your data gets stored in a Flash memory and hence super cheap, in fact even cheaper than things like DynamoDB and stuff.
Re:How to build a HackerNews Clone using Redis by lmilcin on Friday December 03, 2021 @10:29AM (#29431108)
Probably surprisingly little. Also, the publicity HN brings is most likely orders of magnitude more valuable and that makes it much less important to try and optimise the service.

The pages are very light and the algorithms seem to be designed to be quite light, too.

Now, I know neither Arc nor the traffic stats, but I would not be surprised if one or two machines were able to serve entire traffic.

Re:How to build a HackerNews Clone using Redis by tiluha on Friday December 03, 2021 @09:42AM (#29430527)
I don't know how much traffic HN is getting, but i think you should be fine on a 10$ VPS for the most part
Re:How to build a HackerNews Clone using Redis by mtmail on Friday December 03, 2021 @11:13AM (#29431597)
2018 is was around 6m requests/day https://news.ycombinator.com/item?id=26469566 Hardware used at 4m/day was two machines but it runs on one machine https://news.ycombinator.com/item?id=16076041 So maybe double that now.

(update: I mixed up M5 hosting company with AWS M5 instance types)

Re:How to build a HackerNews Clone using Redis by omarhaneef on Friday December 03, 2021 @11:37AM (#29431922)
Do you have to look at the peaks and design for those? (The hardware link accounts for this of course, but not sure the hardware scales linearly with average load, because the peaks may not scale linearly with average load)
Re:How to build a HackerNews Clone using Redis by axg11 on Friday December 03, 2021 @11:17AM (#29431639)
Related question: is it possible to run HN and serve HN-level traffic on any of the major cloud providers' free tier?
Re:How to build a HackerNews Clone using Redis by lostmsu on Monday December 06, 2021 @07:51PM (#29467855)
Maybe Oracle Cloud. They give you up to 4 cores ARM64 instances with up to 24GB total RAM.