True if the UUID so reliable?

Good afternoon. In the Wiki article to the UUID written:
The main purpose of UUID is to enable distributed systems to uniquely identify information without Central coordination. Thus, anyone can create a UUID and use it to identify something with reasonable confidence that the identifier will never be unintentionally used for something else. Therefore, the information tagged with the UUID, can be placed later into the database without need to resolve name conflict.


In my situation, you need to generate IDs for messages in the messenger. With active correspondence, each user can send hundreds of messages. People who use this messenger will be at least 500 people(the size of the company in which it will be used). Whether really it is possible to use UUID in this situation and not be afraid that ajtishniki will be repeated?

Please share the experience of using UUID in a real, more or less large projects.
Thanks in advance!
July 12th 19 at 17:19
3 answers
July 12th 19 at 17:21
Solution
In your case much simpler to generate the ID for the user nick in the chat (its ID number in the database, so shorter)+timestamp accurate to microseconds. To guarantee uniqueness.
July 12th 19 at 17:23
Solution
the algorithm uses the timestamp of the uuid and a few pseudo-random values, the probability that someone in the world will generate the same uuid in the next 300 years tends to zero
Thanks for the reply. - angela.Smith commented on July 12th 19 at 17:26
July 12th 19 at 17:25
In General, UUID is a standard which defines the requirements, if You satisfy them, then you can use. RFC4122

Find more questions by tags Distributed computingDatabasesAlgorithms