I am using redis to store some key/value(s) using HSET. Here is an example command I am using.
hset user name1 aa
hset user name2 bb
...
I'll try redis cluster, how to keep data storing in different nodes?
I am using redis to store some key/value(s) using HSET. Here is an example command I am using.
hset user name1 aa
hset user name2 bb
...
I'll try redis cluster, how to keep data storing in different nodes?
You might find this useful: https://redis.io/topics/cluster-spec#keys-distribution-model.
In Redis Cluster nodes don't proxy commands to the right node in charge for a given key, but instead they redirect clients to the right nodes serving a given portion of the key space
Common approach is to keep within curly braces {user}. Hash of user is redirected to the same node