Question

I am trying to use duplication detection feature in hornetq, to generate UUID, which is the better option, should I choose Java based UUID or UUID generator which comes with hornetq. what would be the difference

Was it helpful?

Solution

FYI, The HornetQ UUID code is based on an old version of Java UUID Generator project http://wiki.fasterxml.com/JugHome https://github.com/cowtowncoder/java-uuid-generator/

It has been optimized for high performance (as opposed to optimized to avoid collisions). As you can see in the bug case below, some UUID choices may give you a very slow start-up time (which may or may not be a problem to you).

See more information here https://issues.jboss.org/browse/HORNETQ-854

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top