Reputation: 21
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
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.
Upvotes: 1