0

Does Vertx 3.5.0 supports Redis Sentinel or not? Any other ways to achieve it?

I have a Master and Slave Architecture in Redis, where I have failover implementation concepts. I can achieve this using NodeJS and Java, but while switching on to vertx-js I am unable to get the sentinel Connections.

Is there any updates regarding Sentinel Support for Vertx?

Alexey Soshin
  • 16,718
  • 2
  • 31
  • 40
Manu C Rajan
  • 153
  • 1
  • 2
  • 13
  • Could you share your code? At first sight, it should work, because it communicates with the redis through the network and it is not relative to language/library/framework you use – slesh Nov 10 '17 at 08:59
  • Are you sure it gets the current Master from the sentinel ?? – Manu C Rajan Nov 10 '17 at 10:20

1 Answers1

0

As of 3.5.0 there is a Redis Sentinel implementation. This was contributed by the community and hasn't been extensively tested so it is not referenced in the docs. If you have experience with it you could help verify it and we can then add proper references to the docs.

Also note that this support is currently not polyglot (so you're stuck with Java at the moment).

There is Support for polyglot sentinel in the master branch. If you're brave enough, please test it! :)

Paulo Lopes
  • 5,845
  • 22
  • 31
  • Thanks Lopes for the reply, was waiting for that.I am using JS as my Language. can i built a jar using Pure Java or Java+Vertx to connect redis-sentinel using that jar file in my JS Program ? @Paulo Lopes – Manu C Rajan Nov 16 '17 at 04:57
  • Yes that would be possible `Java.type()` is your friend https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions – Paulo Lopes Nov 16 '17 at 22:59