4 ms·
Hmm, 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
by makmanalp 13y ago
Hmm, 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.