On Sat, Dec 13, 2014 at 2:52 PM, Wietse Venema <wie...@porcupine.org> wrote:
>
> Mehmet Tolga Avcioglu:
> > Can long queue_ids be used as a globally unique identifier within a multi
> > server setup?
>
> As documented, the queue ID is made up from inode number and time.
> The inode number is unique only within a single file system.
>

Thank you for the reply.

Yes, micro seconds and inode number. Wondering the probability of hitting
the same queue id on one server after a time correction, or probability of
hitting the same queue id on multiple servers. Thinking about it, it should
be quite low and on par with basic hashing functions, but I was not able to
do the math. From your answer I guess I shouldn't look any further and just
add the hostname behind the queue id. But, on that note, adding a single
random character would have probably made it as good as many hashing
functions.

Thanks again

--
Mehmet

Reply via email to