Hello all, I am working on a simple game that involves 6 players with 30 seconds between each move and game logic within node. To join the game, users login and then the node script will match users up. Not complicated at all. I doubt this game will ever be a multimillion player affair but from a learning perspective I would like to understand how I could ensure my game could scale to handle numerous connections.
If I understand correctly, cluster allows node to take advantage of multi core servers. Therefore, my current solution is as follows: 1) Main node instance handling authentication and match making. If a user is already logged in and is currently in a game, all socket data relating to that user will be passed to the second node instance. 2) Node instance to handle individual games - "room" like approach. If the game servers became overloaded then another game server could be introduced and the main server could request games be started on the server with the least games running. The two node servers would run on their own physical servers and utilise cluster if required. To me, this sounds like a simple approach that should mostly scale well. I'd appreciate your thoughts and specifically input on how I can pass a user from one node instance to another. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
