Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

How to reconnect to redis using java with vertx?

$
0
0

The application I'm working on doesn't reconnect with the redis server if the server goes down.

When my application goes up and the redis server is still not running, my application tries to reconnect until the server runs and they connect. But when the two are connected and the redis server goes down, my application does not try to reconnect and starts giving an error[ httpStatus: 500message: "Redis connection is broken." ]

I created an endpoint that makes requests to redis as a test and I'm running the server on my machine and this is the test environment I'm using.

I tried to configure the connection using RedisOptions from the io.vertx.redis.client package but without success. Can you help me please!


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>