4 ms·
Does this mean that using them in a multi-threaded context may produce duplicate ids? Edit: To answer my own question. No, although it does seem to limit your
by secondcoming 6y ago
Does this mean that using them in a multi-threaded context may produce duplicate ids?
Edit: To answer my own question. No, although it does seem to limit your application to a single process with at most 256 threads, if I'm reading it correctly.
> Sequence numbers are per-thread and worker numbers are chosen at startup via zookeeper (though that’s overridable via a config file). [0]
[0] https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowflake.html https://blog.twitter.com/engineering/en_us/a/2010/announcing...