Hi MG, I am currently using the following in my application. http://blog.appenginefan.com/2009/04/efficient-global-counters-revisited.html . It does not use Objectify
But, I was planning to use the Objecify Monotic, so as to keep counter implementation simple and not worry about another library details. Now, with your valid points, it is good discussion thread with Objectify team and find out what they think. -Aswath www.AccountingGuru.in On Sat, Jan 1, 2011 at 10:13 PM, MG <[email protected]> wrote: > Monotonic in Objectify, as defined here: > > > http://code.google.com/p/objectify-appengine/source/browse/trunk/src/com/googlecode/objectify/helper/Monotonic.java?r=620 > > is not 100% safe. For example: > > 1. Memcache is off, lastMax is 100 > 2. Memcache goes up for 1 sec, five requests get 101, 102, ... 105 numbers > for them > 3. Memcache goes off again for 1 sec; requests from #2 are still preparing > data to insert in the related datastore model > 4. Memcache goes up, another five requests get 101, 102, ..., 105 numbers > for them > 5. now we have duplicate numbers. > > MG > > > On Saturday, January 1, 2011 11:08:50 AM UTC-5, aswath wrote: >> >> I was seeing your link. You have used Objectify. Objectify already >> provides Monotonic helper class. >> >> -Aswath >> www.accountingguru.in >> >> >> -- > 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 > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- 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 [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-java?hl=en.
