[appengine-java] Re: Messages received while reconnecting a channel

2011-12-23 Thread Kyle Baley
Is this topic covered in the documentation or some other obvious place that I've missed? Or have I totally misunderstood how the Channel API works? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web

[appengine-java] Re: singleton in gae different instance

2011-12-23 Thread Rick Mangi
Yes, the datastore is the best place to store application state that doesn't change very frequently. Load the sate into a singleton on each instance. The problem with memcache is that you have no control over the eviction policy so your object could vanish. On Dec 23, 5:23 am, Simon Knott wrote:

[appengine-java] Re: singleton in gae different instance

2011-12-23 Thread Simon Knott
Hi, Your best bet is the datastore, as this is probably the most reliable shared service. You could potentially share state in a backend server, but these too have a tendency to go down. Cheers, Simon -- You received this message because you are subscribed to the Google Groups "Google App E

[appengine-java] Re: singleton in gae different instance

2011-12-23 Thread Luke
yes i awared memcache and do this. beside memcache is there any other way? i though is memcache has tendency to go down out of service as well. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to go

Re: [appengine-java] singleton in gae different instance

2011-12-23 Thread Liang Ding
Hi, Luke. In your case, userB can not access the variable in InstanceA. They are in different instance (JVM). Memcache service is cross-instances, you can use it to resolve this. On Fri, Dec 23, 2011 at 5:47 PM, Luke wrote: > Yes, i understand gae autoscale by increasing more instances of > se

[appengine-java] singleton in gae different instance

2011-12-23 Thread Luke
Yes, i understand gae autoscale by increasing more instances of servers. i would like to understand singleton run on different gae instance (cluster) . let say we have userA on instanceA, set a variable on the sigleton java class. Question: will userB in instanceB able to see the variable see by u