![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随便写写
文章平均质量分 64
孙广明的博客
Keep running. Keep learning.
展开
-
遇见 Kafka
遇见 Kafka ~原创 2022-08-25 15:24:04 · 467 阅读 · 1 评论 -
结合Redis在Spring架构体系中使用雪花算法
前言 分布式ID生成策略有多种,各有利弊。这里记录下在工作中我结合Redis在Spring架构体系中使用雪花算法生成分布式ID的方式。 一、代码部分 import lombok.extern.slf4j.Slf4j; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Service; import javax.annotation.PostConst.原创 2021-11-06 22:38:48 · 3717 阅读 · 1 评论