- Redis supports leader-follower replication.
- Leader (master) copy is maintained by leader-follower (master-slave) and replicated to n other follower (slave) nodes.
- Redis Replication supported in Amazon Elastic Cache.
Advantage | Description |
---|---|
High availability | If leader node goes down, the follower can be immediately promoted, so you don't experience any downtime. |
Scalability (Read Queries) | Under extremely high read load, you could balance the reads between the master and follower .- Although it would be recommended to setup up additional no persistence, memory only follower for that purpose. |
- Just add the following line to the replica configuration file
redis.conf
.
replicaof 192.168.1.1 6379