antirez / antirez/redlock-rb

How to use Redlock in cluster

オープン
#6 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。