antirez / antirez/redlock-rb

How to use Redlock in cluster

Ouverte
#6 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Ruby
Étoiles
213
Forks
24
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.