参考Leaf——美团点评分布式ID生成系统 - 美团技术团队 (meituan.com)
代码:GitHub - Meituan-Dianping/Leaf: Distributed ID Generate Service