user2556307
user2556307

Reputation: 21

Is Consistent Hashing the implementation of peer to peer distribution model?

As I know there are two model for replication/sharding -> Master/Slave and p2p.

So is consistent hashing (e.g. used by Dynamo or Riak) the implementation of the p2p model?

Upvotes: 0

Views: 333

Answers (1)

danechkin
danechkin

Reputation: 1306

Riak have masterless replication model, so every node could accept any request. Basically, you could store any data more than once on different nodes by tuning n_val. All requests going to any node, and this node route it further to r nodes. This nodes is chosed by consistent hashing function, applied to key.

enter image description here

Upvotes: 1

Related Questions