g3 insight wrote:
We are facing one problem when implementing reversed ajax call
crossing users on GAE
It is a game center, many client users join the game and play
together.
We supposed that there is a singleton Game Center instance, and all
user is saved in user list within this Game Center instance.
Then, if UserA did one request in game, and want to ask whether UserB
accept it, then system(server side) will do one reverse ajax call to
UserB to ask his response when processing UserA's request.
Also, when there is any data update on user or game, we will also use
reverse ajax call to push those new data to each client user in
UserList which is saved in Game Center instance.
Now, we understood the Game Center class will be initialized in
different server (JVM), so Game Center is not singleton instance on
GAE.
Also we found that it is very difficult to do reverse ajax call
crossing users on GAE, because we can not do reverse ajax call to
client UserY who is on serverB, when system is processing request of
UserX on serverA.
Any idea for handling this type Reverse Ajax Solution (Comet) on GAE?
Afaik, push notifications / Comet is currently not supported and using
things like long polling is not possible, too. But you could possibly
use the XMPP service
(<http://code.google.com/appengine/articles/using_xmpp.html>) for push
notifications.
-Ulrich
--
You received this message because you are subscribed to the Google Groups "Google
App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.