All Questions
Redis hard

In a distributed Redis Cluster environment, how can a developer ensure that multiple keys always hash to the same physical node to enable multi-key operations?

  1. A By forcing the client to identify the master IP address and pinning all connection pools to that specific hardware socket.
  2. B By using curly braces `{}` (Hash Tags) in the key name; Redis only hashes the specific substring inside the braces.
  3. C By disabling the internal CRC16 hashing algorithm and using a manual modulo operation based on the current node count.
  4. D By creating a secondary global index that tracks the physical location of every key-value pair across all shards.

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

Get the app

Related questions