2 ms·
So this gets a list of keys from the server A via the SCAN command, gets their value via DUMP, and sequentially runs RESTORE on server B to load the value? If
by koolba 10y ago
So this gets a list of keys from the server A via the SCAN command, gets their value via DUMP, and sequentially runs RESTORE on server B to load the value?
If so then there's zero transactional consistency between the keys themselves. If each key is independent then that's not really an issue, but if you have multiple keys that make sense only in context of each other, it'd be possible to get values for each that corresponding to different moments in time (each reflecting when the DUMP command was invoked for that particular key).
I get that this is meant to work around limitations in AWS's Redis offering (namely the lack of BGSAVE, direct access to RDB, or SLAVEOF) but I'd suggesting highlighting that inconsistency at the top of the docs.