Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There's a 1/32 chance on instances duplicating work #32

Open
hashbender opened this issue Feb 22, 2018 · 0 comments
Open

There's a 1/32 chance on instances duplicating work #32

hashbender opened this issue Feb 22, 2018 · 0 comments

Comments

@hashbender
Copy link

Since the instanceId is recommended to not be set, the algorithm generates a random 32 bit instanceId. This is left shifted 27 positions, which leaves 5 bits of randomness. On any given invocation, there's a 1/(2^5) chance of colliding with any other invocation.

For production use cases, it should be recommend that unique instanceIds are provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants