News for hackers. Stuff that matters.
Re:Ask HN: How much does it cost to run Hacker News? by pifm_guy on Thursday December 29, 2022 @06:29AM (#34171593)
Buuut... The Aws+kubernetes approach is very scalable.

If overnight, HN became the new Facebook, the single server model wouldn't work, and the business opportunity would be lost.

However, the kubernetes model probably would scale (probably with a few hiccups still, but doable), and HN would suddenly be a 100x business.

That is why business leaders pick the more expensive 'best practice' setup.

Re:Ask HN: How much does it cost to run Hacker News? by kosinus on Thursday December 29, 2022 @06:40AM (#34171665)
I don't believe business opportunities are lost that quickly. Sure if you're down for 2 months, yes. But use a solid dbms and web framework and you can transition to multiple servers quite easily, in the order of hours. Doesn't even have to be k8s, but call in an expert the next day if you have to.
Re:Ask HN: How much does it cost to run Hacker News? by bl0rg on Thursday December 29, 2022 @06:39AM (#34171656)
No. Bored engineers pick it because it’s more fun to build complex systems being able to handle a wider array of scenarios.
Re:Ask HN: How much does it cost to run Hacker News? by amelius on Thursday December 29, 2022 @06:36AM (#34171643)
I like it that HN has a built-in protection against an eternal September :)
Re:Ask HN: How much does it cost to run Hacker News? by sph on Thursday December 29, 2022 @06:45AM (#34171693)
Reading your comment and the answers, I have a hard time telling if you're being ironic or serious here. I'm going to be charitable and assume yours is some very sharp wit that flew over the heads of some that replied to you :)

Indeed it is a terrible idea to optimise any piece of software that's put online in the rare occurrence it becomes the next Facebook. No, it will not happen overnight. No, you can run on an autoscalable k8s on AWS setup and it will still break, you will have to completely re-architecture and write a lengthy "what went wrong" post-mortem anyway.

I feel the "premature optimisation is the root of all evil" mantra is not yet being taught in DevOps school.

Re:Ask HN: How much does it cost to run Hacker News? by imiric on Thursday December 29, 2022 @06:48AM (#34171712)
> If overnight, HN became the new Facebook

Begone, Satan!

> That is why business leaders pick the more expensive 'best practice' setup.

Realistically, how many companies reach the scale of FB? If successful, they'll reach a few thousand concurrent users, which can be serviced by the monolith model, and even scaled traditionally. HN is a testament of how well this model can work.

Building an entire infrastructure around the 1e-9% chance it will have to service a FAANG-level scale of traffic is the definition of premature optimization.

Instead, setting up and maintaining this HA infrastructure is a huge resource sink, which at an early stage of a startup can make or break the project.

It's insane that this model of building for burstable scale where everything is a microservice has become so prevalent in the industry. Cargo culting whatever tech is produced by FAANGs is doing immeasurable harm. These are not best practices.

EDIT: Ah, if you were being sarcastic... Touché.

Re:Ask HN: How much does it cost to run Hacker News? by therealdrag0 on Thursday December 29, 2022 @04:38PM (#34178367)
FANG is hyperbole. There are a TON of companies between HN and FB that have scale or complexity that requires more than a single service to run.
Re:Ask HN: How much does it cost to run Hacker News? by kcartlidge on Thursday December 29, 2022 @08:32AM (#34172425)
> If overnight, HN became the new Facebook, the single server model wouldn't work, and the business opportunity would be lost.

I know you're probably being /s but just in case ... all they'd need to do as a stop-gap hack whilst they worked it through is spin up another couple of servers and stick a load-balancer in front. If it does have a filesystem back-end then move that into cloud or network storage. Not ideal, but it would probably survive long enough for a more thought-through solution to arrive.