I would like to extend the vertx-redis-client with a failover feature.
Sadly we can't use redis cluster or sentinel, so I have to implement it my own.
Now I try to find a way to extend the vertx-redis-client in a non invasive way.
What I need, is the information, that the client got disconnected.
At this point I would like to run my own watchdog and make a failover (reconfigure the client) to a slave, if needed.
The best I came up with is to publish the state of RedisConnection on the EventBus.
To reach that, I have to touch RedisOptions, RedisConnection, AbstractRedisClient, RedisClientImpl and RedisClient.
Any suggestions how I could reach the goal, of getting the information if the client is connected or not, in way where I have to touch less code?
Thanks for your suggestions
Florian