12 2019 档案
摘要:先把结论抛出来:redis无法正确实现分布式锁!即使是redis单节点也不行!redis的所谓分布式锁无法用在对锁要求严格的场景下,比如:同一个时间点只能有一个客户端获取锁。 首先来看下单节点下一般redis分布式锁的实现,其实就是个set: 加锁: /** * 尝试获取分布式锁 * @param
阅读全文
摘要:The so-called phantom problem occurs within a transaction when the same query produces different sets of rows at different times. For example, if a SE
阅读全文