fzy-blog

java 分布式唯一 ID 生成方案

2019-05-24

java 分布式唯一 ID 生成方案

基于 Snowflake 算法生成 id 方案:
https://github.com/michaelliao/itranswarp/blob/master/src/main/java/com/itranswarp/util/IdUtil.java

https://www.liaoxuefeng.com/article/1280526512029729
https://www.cnblogs.com/light-zhang/p/8359144.html

分布式唯一 ID 生成方案:
https://blog.csdn.net/imi00/article/details/78629710

架构师之路总结:
https://mp.weixin.qq.com/s?__biz=MjM5ODYxMDA5OQ%3D%3D&mid=2651960245&idx=1&sn=5cef3d8ca6a3e6e94f61e0edaf985d11&chksm=bd2d06698a5a8f7fc89056af619b9b7e79b158bceb91bdeb776475bc686721e36fb925904a67&mpshare=1&scene=1&srcid=0626i5Oy0egfPAKrFc5VFrAK

基于 Redis 生成自增 id:
https://www.cnblogs.com/firstdream/p/9055862.html
https://blog.csdn.net/smilefyx/article/details/73511243?utm_source=blogxgwz0

基于 Redis 分段生成方案:
https://xli1224.github.io/2018/03/10/global-id-generation/
https://blog.csdn.net/wind_2307154495/article/details/78739498

美团点评分布式 ID 生成系统 Leaf-segment 方案:
https://github.com/zhuzhong/idleaf

基于 flicker 的生成文案:
https://mp.weixin.qq.com/s?__biz=MjM5MDI3MjA5MQ==&mid=2697266651&idx=2&sn=77a5b0d4cabcbb00fafeb6a409b93cd7&scene=21#wechat_redirect

基于 UUID、MongoDB 的生成策略:

http://hutool.mydoc.io/#text_321549

Tags: 优化
使用支付宝打赏
使用微信打赏

若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏

扫描二维码,分享此文章