Distributed ID generator based on Twitter's Snowflake