Unique IDs?

32 views
Skip to first unread message

Craig Brott

unread,
Aug 8, 2014, 1:11:16 AM8/8/14
to inbo...@googlegroups.com
I'm curious how IDs in Inbox are created and managed. Can two messages, threads, files, etc. ever have the same ID even if they belong to different namespaces or users? How are they generated?

Thanks.

Eben Freeman

unread,
Aug 8, 2014, 4:23:31 AM8/8/14
to Craig Brott, inbo...@googlegroups.com
The IDs are random UUIDs, encoded in base 36. For all practical purposes, no two resources will ever have the same ID -- if you generated a billion a day for the next fifty years, the probability of a collision would be about 1e-11, i.e., very small.


On Thu, Aug 7, 2014 at 10:11 PM, Craig Brott <craig...@gmail.com> wrote:
I'm curious how IDs in Inbox are created and managed. Can two messages, threads, files, etc. ever have the same ID even if they belong to different namespaces or users? How are they generated?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Inbox developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inbox-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Craig Brott

unread,
Aug 11, 2014, 10:51:33 PM8/11/14
to inbo...@googlegroups.com, craig...@gmail.com
Thank you, appreciate the quick reply.
Reply all
Reply to author
Forward
0 new messages