rfc4122

Collision probability of ObjectId vs UUID in a large distributed system

那年仲夏 提交于 2019-11-26 17:45:06
问题 Considering that an UUID rfc 4122 (16 bytes) is much larger than a MongoDB ObjectId (12 bytes), I am trying to find out how their collision probability compare. I know that is something around quite unlikely , but in my case most ids will be generated within a large number of mobile clients, not within a limited set of servers. I wonder if in this case, there is a justified concern . Compared to the normal case where all ids are generated by a small number of clients: It might take months to