Saturday, 11 May 2019

Python Processes Scalability?

Hello, I am currently developing a turn based game in NodeJs using TypeScript. I found out that for my kind of game Python is an excellent choice however, handling the communication with the Unity3D clients is so much easier with Node+Typescript. I've figured that maybe I can get the best of both worlds using Python Child Processes (using child_process.spawn). To give you an idea what I am doing:Player a sends a message to the NodeJs server and creates a lobbyPlayer b fetches rooms from the NodeJs server joins the lobby of player a and challenges themnow the actual game logic starts, a python process starts and data from player a and b are fed to the python process, the python process sends data back to the nodejs which sends the data to the players.​My game is a turn based game so a few ms delay here and there won't matter but my question is, would this architecture scale if my Node App has to launch 1000 child processes for 1000 potential lobbies? Or am I better off biting the bullet and implement the game logic in the node app itself?

Submitted May 11, 2019 at 11:05PM by SpaceKuh

No comments:

Post a Comment