id
分布式id生成器
1. etcd 为什么要使用etcd,主要是要考虑到workid需要抢占锁 https://yuerblog.cc/2017/12/12/etcd-v3-sdk-usage/ 分布式锁 https://blog.csdn.net/cadem/article/details/56495834 https://www.jianshu.com/p/d3068d0ac7c1 https://github.com/etcd-io/etcd/blob/master/clientv3/concurrency/mutex.go#L26 github.com\coreos\etcd\clientv3\lease.go recvKeepAliveLoop