I'm planning to build a big browser multiplayer game with gameplay very similar to agar.io but rpg. Game will be containing rooms as It's done in agar.io. 50-100 players max per room. Realtime. 10ms update loop. The server should be scalable, I guess the kafka or some other message broker should be used, but I can't figure out how to design such system to handle 2000-10000 players per day at least or more.
Where player's state should be calculated?If I create websocket server and create single loop It cannot handle such huge bunch of players. How to split player sessions to kafka consumers or to do something to Improve performance in scalable calculation model?
Any thoughts regarding the server architecture will be appreciated!