Skip to content

ChaceYang/jake

Repository files navigation

Jake ID

Build master branch Maven Central with version prefix filter LICENSE coverage

A distributed unique ID generator inspired by snowflake and sonyflake

The default ModelS composed of

41 bits for time in units of 1 millisecond, Max of 68 years.
13 bits for a machine id, Used private ipv4 ipv4 [*.*.0-31.0-255][0.0.11111.11111111]
9  bits for a sequence number, 512 sequence per millisecond

The ModelL composed of

38 bits for time in units of 10 millisecond, max of 86year.
16 bits for a machine id, default is private ipv4 [*.*.0-255.0-255][0.0.11111111.11111111]
9  bits for a sequence number, max of 512 sequence per 10 millisecond

Usage

Maven

<dependency>
  <groupId>io.github.funcfoo</groupId>
  <artifactId>jake-id-spring-boot-starter</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

  implementation 'io.github.funcfoo:jake-id-spring-boot-starter:1.0.0'

License

The MIT License (MIT)

See LICENSE for details.

About

A distributed unique ID generator inspired by snowflake and sonyflake

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages