I`m now doing an experiment of replication mode of redis, and I have a question. I know that redis adopt asynchronous approach to realize the replication, so I want to ask if the master server crashes, how will the slaver server synchronize its state with the master server's state(the moment before the downtime)?

Comment From: Jeremy-Run

afaik, There is no such mechanism. see details: https://github.com/redis/redis/blob/unstable/src/replication.c

Comment From: Tiancheng-htc

Well thanks. However, if the master server goes down, won't it cause the replica and master states to be inconsistent?

Comment From: Tiancheng-htc

And I want to ask the goal of Redis to design replication mechanism solely.

Comment From: hwware

Hi @Tiancheng-htc ,

Please look into below document's "Configuration handling, propagation, and failovers" part, I guess you will get a better understanding how does it work!

https://redis.io/docs/reference/cluster-spec/