3

Redis 主从结构是否存在某一时刻数据不一致?

 2 years ago
source link: https://www.v2ex.com/t/867475
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

Redis 主从结构是否存在某一时刻数据不一致?

  Markxu0 · 3 小时 50 分钟前 · 776 次点击

在使用 MongoDB 副本集时,如果使用默认的读写偏好,插入数据后立刻查询,可能会出现刚插入到主库,还没来得及同步到从库,就在从库查询,然后导致这个记录没有被查询到。

那么在 Redis 主从结构中,是否也存在类似的情况呢,插入一条数据,然后立刻查询,可能会查询不到数据? 如果不存在类似情况,Redis 又是如何处理的呢?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK