Skip to content
64 bit sequential ID generator based on twitter snowflake ID generation algorythm
Java
Latest commit 2868947 Nov 5, 2015 @Predictor Merge pull request #2 from akhitev/master
fixed negative ids issue; fixed id structure - most significant bits are timestamp now
Failed to load latest commit information.
IdGenerator removed testDataCenter hack Aug 18, 2013
.gitignore Initial commit Jan 24, 2013
README.md Update README.md Jan 30, 2013

README.md

javasnowflake

Java implementation of twitter snowflake. 64 bit sequential ID generator based on twitter snowflake ID generation algorithm. id is composed of: time - 41 bits (millisecond precision w/ a custom epoch gives us 69 years); configured machine id - 10 bits - gives us up to 1024 machines; sequence number - 12 bits - rolls over every 4096 per machine (with protection to avoid rollover in the same ms).

Something went wrong with that request. Please try again.