[aerogear-dev] UUID Generation

Kris Borchers kris at redhat.com
Tue Sep 11 16:20:04 EDT 2012


Hey everyone, I just wanted to let you know I have been doing a little research around generating id's on the client side. I have found a little JS utility lib that I am thinking about using that generates RFC4122 compliant UUIDs. That library is here http://www.broofa.com/Tools/Math.uuid.js if you are interested. Bruno thought it would be a good idea that I send this out for everyone as it may be a good idea to see what is available in the Android and iOS world in terms of generating similar id's.

I have been thinking about this a bit lately and am also hoping to get people's thoughts on whether or not this may be overkill. The reason I say that is that really the only reason you would need such a unique id is if there will be a chance of something else (another client, server, etc.) generating an id for a piece of data that would conflict with this one. What I was thinking though is that is only an issue at sync time. As long as you know the id is unique in the client, and the status of that piece of data (new, modified, removed), then at sync time, you can rectify those id's that are out of sync with what is generated at the server and you have one point of id generation.

Would really appreciate others' thoughts on this.

Kris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20120911/5c70f075/attachment.html 


More information about the aerogear-dev mailing list