This belongs in the GAE group.

Use the gae backends and sign game instances to backend instances.

So a game requests come in via a servlet on a dynamic instance, then the 
request is forwarded to the back-end. In the back-end you can keep the game 
states in memory. 


Op woensdag 16 mei 2012 16:40:59 UTC+2 schreef Richy het volgende:
>
> I'm writing a game app on GAE with GWT/Java and am having a issues with 
> server-side persistent data. Players are polling using RPC for active games 
> and game states, all being stores on the server. Sometimes client polling 
> fails to find game instances that I know should exist. This only happens 
> when I deploy to google appspot, locally everything is fine.
>
> I understand this could be to do with how appspot is a clouded service and 
> that it can spawn and use a new instance of my servlet at any point, and 
> the existing data is not persisting between instances.
>
> Single games only last a minute or two and data will change rapidly, 
> (multiple times a second) so what is the best way to ensure that RPC calls 
> to different instances will use the same server-side data?
>
> I have had a look at the DataStore API and it seems to be database like 
> storage which i'm guessing will be way too slow for what I need. Also 
> Memcache can be flushed at any point so that's not useful.
>
> What am I missing here? Could someone tell if the datastore is the way to 
> go or if there is another way, thanks.
>
> (nb. cross posted here: 
> http://stackoverflow.com/questions/10620315/gae-gwt-server-side-data-inconsistent-not-persisting-between-instances
> )
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UotSu07XXmwJ.
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-web-toolkit?hl=en.

Reply via email to