Open sixtool opened 5 years ago
You can tweak the interface to return the role, when reading from the Sentinels. This way the table includes, the hostip, port and as well as the role. The role can be exposed to the calling API, or a API with exclusive role based responsibility can be constructed around it.
I have two redis one master and one from use , how to Read and write separation use lua-resty-redis-connector