redolog / blog-comment

Blog comment using gitalk.
0 stars 0 forks source link

使用分布式锁解决接口互斥性、幂等性问题两例 | 宋惠龙的博客 #190

Open redolog opened 3 months ago

redolog commented 3 months ago

https://redolog.github.io/posts/rd/troubleshoot/distributed-lock/exlusiveness-and-idempotence-case01/

针对近期处理的两例并发场景引发的「互斥性」「幂等性」问题进行过程分析、输出系统方案。

redolog commented 3 months ago

问题2中使用mysql的悲观锁也可以实现效果,但是由于这块代码过于庞杂,还是直接外部一个大锁来的痛快、干脆