![]() If it handles all four buckets, then we could expect it to behave like standalone Redis, because every key will be accounted for and all keys will live on the same server. ![]() Now imagine that a Redis server can handle either one, two, three or four buckets. The hashing function will produce a more or less even distribution, so if you produce random keys and you map them to four buckets, those buckets will end up with a similar amount of keys. What is important here is that a given string will always map to the same bucket. Let’s say "foo" maps to bucket 3, "bar" maps to bucket 1, "baz" maps to bucket 1 again, "qux" maps to bucket four, and so on. Imagine there are four buckets, and a hash function that maps any key -any string- to any of those four buckets. In order to understand other differences between standalone Redis and Redis Cluster, you have to learn about hash slots, or buckets as we call them just to explain what they are and how they work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |