-
-
Notifications
You must be signed in to change notification settings - Fork 161
redis plugin: redis server downtime not handled gracefully #159
Comments
I've even tried to create a helper partial function to wrap the status of the cached call:
But the actual error seems to be thrown from an iteratee outside my control so I can't even catch this exception:
|
You could submit a pull request with your suggested improvement. As for why your work around doesn't work, it's because iteratees are asynchronous. If you want to recover, you need to invoke |
#172 |
@infomofo this was a simple bug that I resolved in this PR: #171 However, since this repo is not actively maintained anymore I was encouraged on my last PR before that one to consider taking over this repo. I have forked the repo and moved it here (still in process of updating documentation on this original repo) and have published the fix for this issue you referenced here. |
I'd like to use a redis cache for content caching in my play server.
I have a play action that i'm wrapping with the Cached action, i.e.
The play plugin for redis works great. However i realized I'm introducing a new point of failure into my system.
If the redis server ever becomes unavailable, then my Cached server action call throws a hard exception
Is there a recommended pattern to deal with redis server downtime gracefully using this plugin and pattern? Ideally I would like the play caching api itself to log a hard exception but return the result as if it were a cache miss.
The text was updated successfully, but these errors were encountered: