snowflake4j you can use IdWorker with zookeeper for auto getting workerId or standalone for setting workerId manually.