AppWarpS2 connection to our MongoDB stability

0 votes
Hi I have just a couple of questions regarding our game development and hope you can help.

We have a QuizUp like game extended from your sample running on AppWarpS2 server and now we want to connect to our MongoDB service (which holds the questions) running on same space that we setup in Service Manager.

My questions are:

1) Would it be best to setup connection to database in server main?

2) Is it then best to pull the questions from MongoDB in QuizRoomAdapter constructor before game starts?

3)I am assuming that them multiple rooms will be setup for each game and that each room will have its own connection to the database that will pull questions from it before it plays, wiith this setup how many (approx) concurrent games could my extended sample handle in this configuration or is there a better way to do this?

Hope you can advise here!

Many thnaks
asked Jul 10, 2015 in AppWarpS2 by wiredvoltage (84 points)

1 Answer

+1 vote
Best answer


Yes, you can connect with MongoDB using AppWarpS2.

  1. You can create a DB insatance in Zone Adapter in case you have a single DB.
  2. If you have different datanbase based on rooms than you can connect them in QuizRoomAdapter constructor.
  3. You can create as many as concurrent game rooms, also you can fetch a set of questions whenever a quiz started in QuizRoomAdapter,

Let us know if you have more queries.


Vishnu Garg



answered Jul 10, 2015 by Vishnu Garg (674 points)
selected Jul 10, 2015 by wiredvoltage
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on