Re:SWAPDB Redis command
by antirez on Friday October 14, 2016 @11:08AM
(#12708552)
Hello koolba, I did not expect this commit to reach HN, but here we are... so: there are different use cases but distribution of read-only data to far places with an easy upgrade path for the data is one that comes to mind. Since this pattern is requested very often there are for sure other applications. About Lua, the scripts are atomic from the POV of Redis, so the swap happens before or after the script is executed: they should work as expected AFAIK, but thanks for hinting about that.
[ Parent
| on HN ]
Cool, thanks for the reply and I've said this a number of times before on HN, but I'll say it again, I really love working with Redis!
Any plans to tie this into clustering/sentinel? Say if there's a cluster of redis servers, to have all of them switch over to a new DB in tandem?