Sunday, 18 August 2019

Cluster a websocket app

I am building a game with a Unity frontend and a nod backend using the "ws" module, it is working great so far but I don't know how I would scale my app, right now I am not using any threads but the main thread, and I don't have any heavy computing to do that I can use a worker thread for. So I thought that it would make sense to basically "clone" my app and run it one time on each core. How I imagine it- 1 Master server + n game servers on the other cores- player A creates lobby it is being created and run on another core- player B wants to join player A's lobby to play with him/herHow would I get both players to connect to the same child process? (Please note that I really want to keep using the ws library because it covers all my needs bu scaling and performance very well so far)Thanks in advance!

Submitted August 18, 2019 at 09:47PM by SpaceKuh

No comments:

Post a Comment