Is redis list data structure horizontally scalable

Viewed 195

OOTB, will a redis list data structure support sharding - meaning will the elements of a list are stored in same physical machine or will redis hash the elements and distribute them across all available shards. Any strategy to distribute the elements of a redis list across multiple shards ? if it is possible, will the LRANGE method fetches the elements from shards randomly ? or how does it work

1 Answers

Redis data structures are bounded to a single key, which is associated to a specific hash slot in a specific shard.

If you need to collect data from different list on different shards you should consider either collect them one by one or add a Redis Module like RedisGears.

Related