Genserver performance - what would be best for this scenario?

Thank you guys, for all your suggestions I ended up spawning a new genserver for every game and store the individual game state in its own genserver, the genserver gets automatically shut down when the game ends.

This strategy ensures that a single genserver will not block processing updates to the games and

This has worked pretty well for me till now.

The game is complete check it out here, I also wrote a detailed post about it here

3 Likes