I have a multiplayer browser based quiz game built on php, javascript and MySQL. If I place load balancer and autoscaler to scale my game then I am concerned about how below scenario will be handled:
- A user is connected on server-1 and after some time drops off.
- Later when the player joins game, the load balancer send the request of this player to server-2.
- Then how will my player's previous data will be available now on server-2.
Basically what will be good option to maintain game and player state across different servers.