C
C
Celbine2019-01-22 18:59:43
Node.js
Celbine, 2019-01-22 18:59:43

If the node js server is single-threaded and occupies 1 processor core, then it will be rational for the game server to run several servers?

Hello, I am writing a game where, for example, two players connect to a web socket room for two connections and a game simulation is created for this room to synchronize actions.
For example, I have a server on port 8001, in which, let's say, there will be about 50 rooms maximum.
Essence of the question: if we proceed from the fact that node js is single-threaded and uses one server core, will it be rational to run as many servers and on different ports as there are processor cores?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-01-22
@alexr64

Yes. And write a room broker so that he knows where which room is.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question