What does scaling backend code mean for servers? How does that work?

318 viewsOtherTechnology

Hello good fellows.

Recently, the devs for the game Helldivers 2 mentioned that one of the biggest issues they’re facing is that their backend code was not designed to be able to handle the sheer amount of players they’re getting, and that they’re working hard to optimize it.

I understand the broad strokes of what they mean, TLDR things were made with X people in mind, they ended up getting 10X, things are oversaturated. But how can code only work with so many people at a time? I thought it was a matter of hardware resources like RAM or processing power taken by the code per user, but if that were the case I’d imagine just adding more servers would solve the issue, something they’ve stated won’t really help that much in the long run. So I’m left wondering what really goes into scaling that kind of stuff to accomodate for more users.

Thanks in advance.

In: Technology

3 Answers

Anonymous 0 Comments

It would be pretty difficult to give specific answers unless the information came right from the devs or someone actually had a chance to look at their code. But really it boils down to the fact that games and things like that are fairly complex systems made up of lots of smaller subsystems that all have to work semi-independently while still working with one another, and sometimes while being used by hundreds of thousands of people on different hardware doing unpredictable things. And just bumping up the resources in one of those subsystems won’t necessarily fix the problem by itself since that’ll also require updating all the other subsystems it interacts with.

I think I remember the head of Arrowhead saying what they were doing is basically trying to retrofit a Vespa so it could compete in F1 and that feels appropriate. Problem number 1 is your Vespa is too slow, so the obvious solution is to just put a bigger motor in it. Problem solved, you’re ready to compete, right? Except to get the power from the motor to your wheels, you need to deliver it through a drive train, and your drive train can’t handle all the new power. So you replace that, but then your scooter wheels just burn up. So now you need to swap in better wheels. But you can’t just swap out the wheels because they won’t fit unless you update the frame of your scooter. But if you update the frame your new drivetrain won’t fit either. So now you’ve got to go back and update that again, and so on.

Obviously that’s not exactly a perfect 1 to 1 analogy, but the servers being full doesn’t necessarily mean you can just add more servers and call it a day. The data from all those servers has to connect to other systems that will also need updates to handle the extra data, and that will require extra time and testing to make sure those updates don’t break other things. And if they do break other things, then you’ve got to update those things and test them, and so on.

You are viewing 1 out of 3 answers, click here to view all answers.