Reputation: 387
I'm using Lettuce Redis client for JVM to build a queue backed by a Redis List. Ideally it would behave like an in-memory queue but since the network interaction is involved this is not possible.
There is a section on error handling in Lettuce docs and in my case I would like to retry failed commands on error. The problem is the exception hierarchy is not very fine grained and I'm not sure how to deal with the following issues:
RedisException
or NativeIoException
but recreate the Redis client instance or even restart the whole application?This problem looks like something everybody has to deal with but there doesn't seem to be a lot of information regarding this.
Upvotes: 3
Views: 1573