manpreet singh
manpreet singh

Reputation: 1059

Is it possible to make redis strongly consistent?

The https://redis.io/topics/cluster-tutorial states that redis cluster is not strongly consistent. The reasoning it states even if WAIT is enabled is:

What if for a key k we find the master node M and the replicas r1,r2....rn using

CLUSTER SLAVES node-id

. And execute

WAIT N

and only proceed with the transaction if it return N? Wouldn't that always ensure that the data is perfectly synced before executing transaction. Wouldn't that ensure strong consistency ?

Upvotes: 1

Views: 1300

Answers (1)

for_stack
for_stack

Reputation: 22886

NO, it still CANNOT guarantee.

Although WAIT returns N, which means all replicas have acknowledge the writes in memory, these nodes might fail before these writes operation are written to disk.

Upvotes: 1

Related Questions