Hashing &Consistent Hashing

Hashing

Hashing is for fast retrieval operations which the data is stored based on the hash function it uses modules for the hash value based on that hash value. it is a traditional way for the storing the data and there is a drawback for when we are scaling your server's data remap to the server then load of server will be increases.

It to overcome this problem we use Consistent hashing.

Consistent Hashing:

Consistent Hashing will use degrees or angle of a circle to represent data distribution. and it does not affect when we scale up or scale down the servers.

Here we use server replicas so that data will not overload in the servers.