[appengine-java] Re: Session object or memcache?
Google appengine stores session data in the App Engine datastore for persistence, and also uses memcache for speed. Using the AppEngine implementation of sessions for Java, you are using a combination of datastore and memcache and this solution is transparent from the development point of view. Hope this help, Regards, Jose Miguel Bataller On Jun 11, 4:12 pm, RAVINDER MAAN wrote: > I was not aware about loss of session objects.strange!! > > On Fri, Jun 11, 2010 at 8:39 PM, Rahul wrote: > > No doubt if your application is low traffic you will definitely need > > memcache as session will be lost every minute when the jvm restarts > > and you need to reload everything and also session is highly > > discouraged due to various reasons. > > > Thanks, > > Rahul > > > On Jun 11, 4:16 am, RAVINDER MAAN wrote: > > > Hello all > > > what is the best option from performance point of view, storing > > > frequently used objects in session or loading from datastore for every > > > request(we can add memcache support before trying to fetch from > > > datastore).Can anybody tell me good link to develop high performance > > > and fast application development best practices link.I am using java > > > with JDO. > > > thanks in advance. > > > -- > > 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 > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > Regards, > Ravinder Singh Maan -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Session object or memcache?
can anybody provide good link for dos and donts for high traffic apps ? On Sun, Jun 13, 2010 at 11:52 AM, nischalshetty wrote: > Session isn't lost but session use is discouraged. You have memcache > which is pretty fast in retrieval. Of course, every once a while even > the memcache can be invalidated due to various reasons. While relying > on memcache you need to be sure that in case the value returned is > null query the datastore. > > My app gets high traffic every hour. I do keep the user object in > session and haven't come across any problems yet. > > -N > > On Jun 13, 6:33 am, Thomas wrote: > > Session is cached in memcache and persisted to datastore. So when > > loading request occurs it won't be lost if it is not expired. You can > > view session (_ah_SESSION) data with datastore viewer. > > > > On 6月11日, 下午11時09分, Rahul wrote: > > > > > > > > > No doubt if your application is low traffic you will definitely need > > > memcache as session will be lost every minute when the jvm restarts > > > and you need to reload everything and also session is highly > > > discouraged due to various reasons. > > > > > Thanks, > > > Rahul > > -- > 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 > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- Regards, Ravinder Singh Maan -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Session object or memcache?
Session isn't lost but session use is discouraged. You have memcache which is pretty fast in retrieval. Of course, every once a while even the memcache can be invalidated due to various reasons. While relying on memcache you need to be sure that in case the value returned is null query the datastore. My app gets high traffic every hour. I do keep the user object in session and haven't come across any problems yet. -N On Jun 13, 6:33 am, Thomas wrote: > Session is cached in memcache and persisted to datastore. So when > loading request occurs it won't be lost if it is not expired. You can > view session (_ah_SESSION) data with datastore viewer. > > On 6月11日, 下午11時09分, Rahul wrote: > > > > > No doubt if your application is low traffic you will definitely need > > memcache as session will be lost every minute when the jvm restarts > > and you need to reload everything and also session is highly > > discouraged due to various reasons. > > > Thanks, > > Rahul -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Session object or memcache?
Session is cached in memcache and persisted to datastore. So when loading request occurs it won't be lost if it is not expired. You can view session (_ah_SESSION) data with datastore viewer. On 6月11日, 下午11時09分, Rahul wrote: > No doubt if your application is low traffic you will definitely need > memcache as session will be lost every minute when the jvm restarts > and you need to reload everything and also session is highly > discouraged due to various reasons. > > Thanks, > Rahul -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Session object or memcache?
I was not aware about loss of session objects.strange!! On Fri, Jun 11, 2010 at 8:39 PM, Rahul wrote: > No doubt if your application is low traffic you will definitely need > memcache as session will be lost every minute when the jvm restarts > and you need to reload everything and also session is highly > discouraged due to various reasons. > > Thanks, > Rahul > > On Jun 11, 4:16 am, RAVINDER MAAN wrote: > > Hello all > > what is the best option from performance point of view, storing > > frequently used objects in session or loading from datastore for every > > request(we can add memcache support before trying to fetch from > > datastore).Can anybody tell me good link to develop high performance > > and fast application development best practices link.I am using java > > with JDO. > > thanks in advance. > > -- > 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 > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- Regards, Ravinder Singh Maan -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Session object or memcache?
No doubt if your application is low traffic you will definitely need memcache as session will be lost every minute when the jvm restarts and you need to reload everything and also session is highly discouraged due to various reasons. Thanks, Rahul On Jun 11, 4:16 am, RAVINDER MAAN wrote: > Hello all > what is the best option from performance point of view, storing > frequently used objects in session or loading from datastore for every > request(we can add memcache support before trying to fetch from > datastore).Can anybody tell me good link to develop high performance > and fast application development best practices link.I am using java > with JDO. > thanks in advance. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.