Search code examples
redisconsistent-hashing

does redis cluster use consistent hashing


I'm using redis cluster 3.0.1.

I think redis cluster use consistent hashing. The hash slots are similar to virtual nodes in consistent hashing. Cassandra's data distribution is almost the same as redis cluster, and this article said it's consistent hashing.

But the redis cluster turorial said redis cluster does not use consistent hash.

What do I miss? Thanks.


Solution

  • You are right, virtual nodes is quite simalar with hash slot.

    But virtual nodes is not an original concept of consistent hashing, but more like a trick used by Cassandra based on consistent hashing. So it's also ok for redis to say not using consistent hashing.

    So, don't bother with phraseology.