There are many ways to implement a distributed unique ID. In fact, you can also use ZK's ordered nodes. Since ZK's ordered nodes are ordered and unique, you can actually use its implementation. There is time to supplement the specific code. on.
Distributed globally unique ID (3)
Guess you like
Origin blog.csdn.net/qq_38428623/article/details/105495920
Ranking