Hello. I am developing a very simple io browser game. The game runs on a node js server. For the game to work correctly, the latency must be kept as low as possible. Preferably under 100ms ping. Presently the game runs on an Amazon ec2 server. I am looking for a strategy for ensuring that players who connect to the game through the browser will connect to the server with the lowest latency.
I know that amazon offers a Route 53 product which can handle this, but I believe this is too expensive for my simple game.
Would this strategy be possible?
- Players connect to the http server located in one location. This site just shows graphics of the game and allows the player to enter their name before pressing a button to start playing.
- The players download a list of ip addresses of the current game servers in different regions. They ping each to determine the lowest latency
- When the player presses the start button, they join a game at the region with the lowest latency
Are there any better strategies you would suggest I investigate. Please keep in mind that my game design is very simple and likely will not use login or player profiles when I first launch it.