I'm currently working on a board social game using HTML5 (canvas) & Asp.net MVC 4, Azure, Sql server, EF.
I'd like to do a server side realtime validation (using Ajax) of a player moves (not more than one every 2 seconds).
The problem is that I can't allow a communication to be longer than 200 ms (time of the client side animation). On the server side I have to go to the database to do the validation.
I'm not sure that it is possible to keep a good communication speed over time with a growing community.
What would be a better scenario ?
An other possibility would be to load the grid answers on the grid load but then every player with a bit of firebug background could get the answers with no pain.. Then I'm forced to go server side. Maybe the best would be to load in the web role memory all the grids to not have to go to the database.
Another scenario could be:
1 ajax request to check in the server memory the grid solution
1 ajax request to confirm the player move in database
but it's not cheater safe neither..
Thank for your help