Skip to content

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

Description

@hashbender

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions