What are the disadvantages of redis partition?

Alibaba cloud Q & A 2022-02-13 09:02:36 阅读数:384

disadvantages redis partition

Redis What are the disadvantages of zoning ?

Take the answer 1:

Involving multiple key The operation of is usually not supported . For example, you can't intersect two sets , Because they may be stored in different Redis example ( In fact, there's a way to do this , But you can't use intersection instructions directly ).

Operate multiple at the same time key, Cannot be used Redis Business .

The granularity used for partitioning is key, You can't use a very long sort key Store a data set .

When using partitions , Data processing can be very complex , For example, in order to back up you have to be from a different Redis Instances and hosts are collected at the same time RDB / AOF file .

It can be very complex to expand or shrink dynamically when partitioning .Redis Clusters are added or removed at run time Redis node , It can achieve the most transparent data rebalancing for users , But some other client partition or proxy partition methods do not support this feature . However , There is a pre slicing technology can also better solve this problem .

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130902352627.html