Usergrid 1 and 2 are not great at ensuring unique values are truly unique and I've been able to break both of them by writing code that uses multiple threads to create users of the same name.
A couple of us have been spending the last month or so trying to figure out how to solve this problem using an Actor System called Akka. Mike Dunker wrote an initial design and I have implemented a complete proof-of-concept that works and I have not been able to break it yet. I'm at the point now where I'm ready to implement this system in Usergrid and prepare a PR for review. Before I do that, it would be great to get some feedback on the design, the implementation and the idea in general. If you have some time, please take a look and let me know if you have ideas for improvement, ideas for better tests, or any other feedback. Initial design is here: https://docs.google.com/document/d/1o9okFgNb_c1RY0eIcZMhijhxE9v7BxHYDiuI8BqkLgU/edit# Proof of Concept (POC) code is here: https://github.com/snoopdave/akka_poc1 Presentation that explains the POC is here: https://docs.google.com/presentation/d/11ARSPZ6IAxOYSTo4jcmEdnzXvOgVGNGslznmVtLOZjY/edit?usp=sharing See also: https://issues.apache.org/jira/browse/USERGRID-1268 Thanks, Dave
