segmentio / ksuid

K-Sortable Globally Unique IDs
https://segment.com/blog/a-brief-history-of-the-uuid/
MIT License
4.9k stars 173 forks source link

add alternative link to Java implementation #56

Closed fabiolimace closed 2 years ago

fabiolimace commented 2 years ago

Add link to another Java implementation in README file: KSUID Creator.

How to use

Create a KSUID:

Ksuid ksuid = KsuidCreator.getKsuid();

Create a KSUID with subsecond precision:

Ksuid ksuid = KsuidCreator.getKsuidMs();

Create a Monotonic KSUID, similar to Segment's sequence.go:

Ksuid ksuid = KsuidCreator.getMonotonicKsuid();

The source code has a good amount of unit tests. It also has a micro benchmark to check if the performance is good for your needs.

fabiolimace commented 2 years ago

Thank you!