[google-appengine] Lock the instance

2010-03-15 Thread Iap
Hi, I think that I do require instance locking for the DataStore to solve the integrity problem in my scenario. It's a long story but I will try to put it as brief as possible: 1) Suppose there is a FIFO queue, Q. 2) To consume the queue, there are many clients ( say, the flash movie in the

Re: [google-appengine] Lock the instance

2010-03-15 Thread Eli Jones
You might be better off figuring out if you can design your code so that it does not need locking. You could make it so that whichever client submits processed work from the queue last gets priority.. the other clients work that got returned earlier is just discarded. This way, work could simply

Re: [google-appengine] Lock the instance

2010-03-15 Thread Iap
2010/3/15 Eli Jones eli.jo...@gmail.com You might be better off figuring out if you can design your code so that it does not need locking. If I can, I would. But isn't the locking intrinsic in the multiple processing environment to solve the race-condition problem? I do not insist to have