fmbenhassine / gamehub.io

Real-time multiplayer game server based on Node + Express + SocketIO + MongoDB + ElasticSearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Few questions

opened this issue · comments

  1. How would you scale this in the cloud horizontally?
  2. Is it possible to have Android/Windows/iPhone as a client?
  3. Is it possible to have an SQL db instead of mongoDB?

Hi,

Gamehub is not production ready. I should mention this in the homepage. Security, Monitoring, BD Replication, Node clustring and other production grade aspects should be addressed before deploying your instance to a production server.

How would you scale this in the cloud horizontally?

  • For node, you can use the cluster module. Note that you need to updade node to v6
  • For Mongo/ElasticSearch, you need a replication setup probably with master/slaves architecture

Is it possible to have Android/Windows/iPhone as a client?

No, the provided API is very basic. You need to add a richer API to be able to talk to the server using any client. An example of a great API is the one used in lichess: https://github.com/ornicar/lila/tree/master/doc/mobile

Is it possible to have an SQL db instead of mongoDB?

Yes. Change the domain classes to a relational model and use a RDBMS driver

Hope this helps!
Kind regards
Mahmoud