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]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
