epsylon
epsylon

Reputation: 387

When is it safe to retry Redis command on error when using Lettuce?

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:

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

Answers (0)

Related Questions