you can use IdWorker with zookeeper for auto getting workerId or standalone for setting workerId manually.
happyomg / snowflake4j Goto Github PK
View Code? Open in Web Editor NEWsnowflake4j , a distributed unique id generator with zookeeper , inspired by snowflake by twitter and sleet by matthewcmead.