All Questions
Sharding hard

How does 'Rendezvous Hashing' (HRW) differ from standard 'Consistent Hashing' in terms of implementation and performance?

  1. A Rendezvous hashing is only used for password encryption, while Consistent hashing is used for database routing.
  2. B Rendezvous hashing requires a central ring-topology map, whereas Consistent hashing is completely stateless.
  3. C Instead of a ring, Rendezvous hashing computes a hash for every pair of `(Key, ServerID)` and picks the server with the highest score. This ensures a more uniform distribution but requires $O(N)$ computation per request.
  4. D Rendezvous hashing is significantly faster because it uses simple modulo math instead of complex hash functions.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions