On Saturday, October 19, 2013 9:15:15 AM UTC-5, Kaan Soral wrote:
>
> I've implemented routines to handle contention at a large level, a custom 
> pipeline implementation, there also also basic checks to prevent 
> overwriting an entity.
> When these get overwritten by another update simultaneously, it creates a 
> really disturbing experience
>
>

Generally, the solution is use-case specific. Personally I will use 
transactions or pull queues (take each new action, place them in a queue, 
backend handles them sequentially) to solve these types of problems. There 
are some cases where you can completely skip all of this: for example if 
you use "Login With Google" or similar 3rd party login service, then you 
don't need to validate emails since it's already done for you.


On Saturday, October 19, 2013 9:15:15 AM UTC-5, Kaan Soral wrote:
>
> However there are some operations that require no overwrite to occur, for 
> example:
>    
>    - Email verification
>
>
Out of curiosity, why are you writing so much to an email verification 
field that overwrite is a problem? I can understand if you do a lot of 
reads (to check to see if an email has been verified) but the writing 
should be fairly spaced out - are you rapidly verifying new addresses for 
the same user, or combining multiple user email addresses into a single 
entity?


On Saturday, October 19, 2013 9:15:15 AM UTC-5, Kaan Soral wrote:
>
> (I'm also extremely unlucky, or lucky, tested my new app with ~10 users, 
> all of them experienced unique problems, some issues that occurred probably 
> have <1/10000 probability of occurrence, a user triggered a second signup 
> request, probably by page refresh, it would only cause an issue if the last 
> part of the routine would execute around the same millisecond, and it did)
>


I would certainly call that unusual. Perhaps try another test, and see how 
it goes. 


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to