antirez / antirez/redlock-rb

How to use Redlock in cluster

未关闭
#6 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
213
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

Hi @antirez,

At present, many companies use redis cluster to cache data or do other things. If these companies want to use the RedLock algorithm to implement distributed locks, they must create additional and independent redis nodes just for the Redlock. Because the Redlock algorithm assumes the nodes is independent. As quoted below.

> In the distributed version of the algorithm we assume we have N Redis masters. Those nodes are totally independent, so we don’t use replication or any other implicit coordination system.

It is a waste to do that and it's better for us to reuse the cluster. This [link](https://github.com/redisson/redisson/issues/956#issue-241460677) provides more information about this problem.

Do you have any ideas about it?
Thanks.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。