News for hackers. Stuff that matters.
Re:Becoming a Dungeon Master for an Interview by mewpmewp2 on Saturday February 10, 2024 @05:24PM (#39330776)
Yes, I explicitly do the opposite and have the most pragmatic exercises, questions.

Another thing is an exercise for system design where hyperscaling is not required and the thing is actually quite simple. Many who have specifically prepared by leetcoding and reading "cracking the coding interview" 10 times over will naturally overengineer everything trying to fit this exercise to those book patterns dropping all common sense, all the while not having actually built anything meaningful.

I think these people will mostly try to rest and vest anyway. Truly passionate people will pass since they have actually built something and will understand the exercise.

Re:Becoming a Dungeon Master for an Interview by dmurray on Saturday February 10, 2024 @06:02PM (#39331043)
When I get a system design question I always tell the interviewer "I'd just run it on a single server with an SQLite backend, that will be plenty for the median software service and you haven't told me any numbers that suggests this needs more" and then it turns out they wanted it to run at the scale of WhatsApp.
Re:Becoming a Dungeon Master for an Interview by mewpmewp2 on Saturday February 10, 2024 @06:03PM (#39331061)
Usually it is expected that you ask yourself what is the expected traffic, but I usually answer with a number that technically one box could handle.
Re:Becoming a Dungeon Master for an Interview by ascar on Saturday February 10, 2024 @06:08PM (#39331096)
"So what scale are we talking about? A few million monthly users? So like hackernews? I would use a single server... "
Re:Becoming a Dungeon Master for an Interview by midasuni on Saturday February 10, 2024 @06:12PM (#39331130)
You really need two in physically different locations (ideally ASes) with some form of failover, assuming you want a reasonable guaranteed uptime
Re:Becoming a Dungeon Master for an Interview by ascar on Saturday February 10, 2024 @06:19PM (#39331191)
Does 99.995% [1] of hackernews sound reasonable enough to you?

The reality is a lot of systems (especially simple ones) run perfectly fine on a single server with next to no downtime and all the additional redundancies we introduce also add additional points of failures and without the scale that makes these necessary you might actually end up reducing your availability.

[1] https://hn.hund.io/

Re:Becoming a Dungeon Master for an Interview by dekhn on Saturday February 10, 2024 @07:04PM (#39331474)
I can't see how hackernews is 99.995% if I get at least 30-40 "Can't serve your request" error pages a year.
Re:Becoming a Dungeon Master for an Interview by midasuni on Saturday February 10, 2024 @06:24PM (#39331229)
HN is on a pair of servers.
Re:Becoming a Dungeon Master for an Interview by ascar on Saturday February 10, 2024 @06:37PM (#39331314)
The second one is just a standby though and not in another region. And if I recall correctly dang mentioned at an outage that the failover to the standby is manual. But I'm not sure.

https://news.ycombinator.com/item?id=16076041

Re:Becoming a Dungeon Master for an Interview by kens on Sunday February 11, 2024 @02:26AM (#39333210)
> Does 99.995% [1] of hackernews sound reasonable enough to you?

How did you come up with that number? I looked at the link and just one of the outages listed on January 10 was 59 minutes. That alone makes the uptime worse than 99.99% for the entire year before it was halfway through January.

(99.995% means at most 26.3 minutes of downtime per year. See https://en.wikipedia.org/wiki/High_availability#Percentage_c...)

Re:Becoming a Dungeon Master for an Interview by ascar on Sunday February 11, 2024 @03:27PM (#39338345)
it's the 30 day uptime statistic displayed on the website I linked.

if you click the history it says 98.452% over 365 days.

Re:Becoming a Dungeon Master for an Interview by midasuni on Sunday February 11, 2024 @06:29PM (#39339878)
That’s a pretty low level. That’s lower than my pi hole. But I wouldn’t consider my pihole to be anything other than best endeavours (99.1%). Two would be fine, but there are common points of failure which would limit the solution
Re:Becoming a Dungeon Master for an Interview by borkyborkbork on Monday February 12, 2024 @01:10AM (#39341980)
This so much this! Experience is such a wonderful thing.
Re:Becoming a Dungeon Master for an Interview by joshspankit on Saturday February 10, 2024 @11:41PM (#39332695)
Add a static caching layer and you’re ready for traffic spikes.
Re:Becoming a Dungeon Master for an Interview by NikolaNovak on Sunday February 11, 2024 @07:53AM (#39334664)
We've run 375,000 self-service employees ERP system (so much heavier single transaction than HN) on a single (large:) db2/aix box with no downtime over last 8 years. That's well within published specs for that hardware / software combo.

Yes we do have a DR box in another data centre now, in case of meteorite or fire.

This used to be the norm. A single hardware / software box CAN be engineered for high uptime. It's perfectly fine when we choose to go the other way and distribute software over number of cheap boxes with meh software, but I get pet-peeved when people assume that's the ONLY way :).

Re:Becoming a Dungeon Master for an Interview by midasuni on Sunday February 11, 2024 @06:27PM (#39339864)
I’m paranoid about environmental situations so always have a failover, but then my DR plans include events such as “Thames barrier fails”.
Re:Becoming a Dungeon Master for an Interview by dallbee on Sunday February 11, 2024 @01:03AM (#39332961)
For what it's worth if I ever had a candidate give me this answer on a systems design problem I'd probably immediately stop evaluating them and start selling them on the role.