How cassandra guarantees that a key goes to different nodes when building the different ring nodes?

20 Views Asked by At

If I understand correctly, Cassandra "builds" N ring nodes where N is the replication factor.

From cassandra docs

cassandra rings

How cassandra achieves this while guaranteeing that a key always corresponds to different nodes in each ring? I'm asking this because I want to implement something similar for the ConsistentHashPartitioningService in finagle.

If someone can point to me to the code where this happens so I can start trying to figure it out that would be incredible helpful.

0

There are 0 best solutions below