In a redis cluster what is the default behaviour for the read operations that happen? Does a client read from the master? I know that a client writes/updates/deletes to the master but what about read operations? If the default behaviour is to read from the master node how can I configure it to read from the slave nodes instead?
2
Answers
https://aws.amazon.com/premiumsupport/knowledge-center/elasticache-redis-client-readonly/
It all depends on Redis client library. For Jedis/Lettuce, all operations(CRUD) will be send to corresponding master node, and slaves are only used for failover.
If you wan to implement READONLY slave, you need some customization on Redis client.