snakesnakeclub / snakesnake.club

🐍 🐍Cryptocurrency gambling in an online multiplayer game of snake!
MIT License
4 stars 1 forks source link

Decompose server into two servers; authentication server and game server #5

Open omarchehab98 opened 6 years ago

omarchehab98 commented 6 years ago

Authentication server is a singleton that handles authentication; logging in, registering, resetting password, and resending verification. Only one instance of it will be running in production under the domain name auth.snakesnake.club.

Game server will be running production in multiple regions. It will be what currently is the web socket server. Examples of domains that it will be under: na.snakesnake.club, eu.snakesnake.club, au.snakesnake.club, etc.

All game servers should use the same database as the authentication server, therefore, progress is maintained regardless on what server the user plays on.

Clients will ping the central and default to the server with the lowest ping. However, the user can choose to play on a different server.