I am trying to set up a Master-Slave Redis setup with 1 Master and 2 Slaves and 3 Sentinel nodes. Could anyone clarify the below questions?
What is the difference between replicaof and slaveof properties? Some articles that referred uses either of the above properties when setting up the slave node. So I am confused about which should be used in slave nodes.
By default Redis uses asynchronous replication to replicate its data to Slave nodes. Is there a property to change this behaviour i.e. to synchronous replication? My application is read-intensive and the number of writes is less. So thinking if I can make writes as synchronous(Master to all online Slave) then I can read from slaves as well to handle the traffic.
How to configure Spring boot project read from any nodes and write to master ? Currerntly, I am using RedisSentinelConfiguration() to create JedisConnectionFactory.
Thanks in advance