Sunday 31 March 2019

Use multiple instances of nodejs or single instance for multiplayer game?

Hey guys,I'm developing a text multiplayer game that has 4 players at a time. Nodejs+Express is sending the "views" to the player.Is there an issue with having 3000 individual instances/processes of nodejs running, or is better to have one single instance of nodejs running which uses some sort of "session id" to differentiate between state?For example.mygame.com/session1 -- points to nodejs session 1mygame.com/session2 -- points to nodejs session 2These are two separate nodejs processes. I would prefer this if this isn't a major performance hit.Or I can write it this way.mygame.com/aefeafeaf1 -- points to main nodejs sessionmygame.com/geagea32 -- points to main nodejs sessionmain nodejs session grabs the session ID from the url then figures out what the user state is.Thanks for the help guys!

Submitted March 31, 2019 at 07:40PM by JohnJDonna

No comments:

Post a Comment