RedisReplication

RedisReplication

按照Redis官方文件(https://redis.io/topics/replication)介紹,Redis Replication是一種Master-Slave模式
的Copy機制,這個機制讓Slave node可以變成和Master node完全相同的複本。

What’s Redis Replication Solution?

1
2
Replication can be used both for scalability, in order to have multiple slaves for read-only queries
(for example, slow O(N) operations can be offloaded to slaves), or simply for improving data safety and high availability.

multiple slaves for read-only queries

1
Master專門用來write,多個Slave用於分攤Read的壓力。

High Availability

1
若Master掛了,可以promote其中一個Slave成為新的Master,進而實現故障轉移(failover)。