GitXplorerGitXplorer
i

Snowflake-ID-Algorithm

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
64727afd0b36507ee1b73202a8a09158fd119dd5

update README.md

iitakurah committed a year ago
Unverified
fd5ce71fdae6894bbf0556add7bad38c50adb2df

added algorithm

iitakurah committed a year ago
Unverified
fb9c629a5c00803081a44f7abdca7f379b201d56

inital commit

iitakurah committed a year ago
Unverified
b210c7c0a7ade76b0bd275da6d108dade8d9ba47

inital commit

iitakurah committed a year ago
Unverified
c801052d0a78af654a921bce52e3f75128e155ac

JUnit test for testing the uniqueness of the algorithm

iitakurah committed a year ago
Verified
2f59d994c68582943533cc9f8d34f9487b034e69

Initial commit

iitakurah committed a year ago

README

The README file for this repository.

Snowflake ID Algorithm

The Snowflake algorithm is a unique identifier generation algorithm designed for distributed systems. It provides a way to generate globally unique IDs that are sortable by timestamp and can be used in distributed and multi-node environments. The algorithm was originally introduced by Twitter.

This repository contains an implementation of the Snowflake algorithm in Java, allowing you to generate Snowflake IDs for your distributed applications. The algorithm uses a combination of timestamp, worker ID, and sequence number to ensure uniqueness and ordering of generated IDs.

Key features:

  • It can satisfy the non-repetitive ID in the high concurrent distributed system environment.
  • High production efficiency.
  • Based on timestamps, ordered increments are guaranteed.
  • No dependencies on third-party libraries or middleware.
  • The generated id is sequential and unique.

Sources

License

This project is licensed under the MIT License. See the LICENSE file for details.