4 ms·
What about simply having one do odd and the other even?
by wbl 13y ago
What about simply having one do odd and the other even?
- makmanalp 13y agoHmm, fair point! I think this would definitely work, but only in the case where you have just two things (or in the more general case, a fixed number of things based on modulo n) generating IDs. You're essentially dividing your keyspace into two from the beginning. So then, to add another generator, you'd have to have a scheme that transparently updates all of your generator nodes to do mod 1 mod 2 mod 3 etc. It definitely could work though, if that's what you need.
- haughwout 13y agoOdd/Even requires coordination with Op settings (Having done this on architectures with 10,000+ servers). Sometimes simple is best