【发布时间】:2022-01-05 13:01:20
【问题描述】:
我正在学习 Redis 复制,我了解以下事实
1. By Default replicas are read only.
2. All writes happen to master
3. Master writes changes to internal buffer and then sends them slave for sync
4. Slave receives the buffered information and writes them to their memory
我对此有疑问/好奇 -
让我们假设
主人有一个key:value 作为name:rishi。
这个键值在slave中也是同步/复制的。
现在用户用新值name:coder更新键名,master将数据放入内部缓冲区以使其与slave/s同步。
那么,在 slave 更新之前,Redis 会针对“name”键进行读取查询,是否有可能从 slave 中读取过时的数据?
【问题讨论】:
标签: caching redis distributed-system