I use Java in the Google App Engine and I am most familiar with the Datastore JDO interface. I am trying to implement a simple load counter that stores its data in an App Engine data store.
I expect only a few thousand downloads per month, so the update speed for my counter will be pretty low. Therefore, I am not interested in lowering the counter.
Pragmatically, I could probably ignore the lock and accept that sometimes I lose the update. However, I would like to know how to do it right without losing any updates. I know that in pure Java I would use synchronization, but I do not quite understand what the equivalent mechanism is in the data warehouse.
source share