Redis master-slave achieves a read-write separation effect similar to mysql. Is it necessary to execute slave host at the code level?
Currently, the sentinel cluster is connected through the jedis client JedisSentinelPool. When viewing the log output, the connection should be to the master's host
Will the read request be automatically routed to the slave?
Configure the master's IP and port, and configure the slave's master address and port number. Sentinel monitors the master's IP and port number, and the java code can directly use the master's name and password.
`
`