Ways to handle backend downtime. #95
Replies: 3 comments
-
It seems that I can import from cashews.decorators.cache.defaults import _empty and return this FIY: I overwrite your Redis class (I inherit from it to create a new class). Also, I directly import "cashews" decorators and I pass my custom Redis class into imported decorators. |
Beta Was this translation helpful? Give feedback.
-
@Krukov How do you handle Redis problems? E.g. |
Beta Was this translation helpful? Give feedback.
-
Good question. Originally cashews was designed for mostly using decorators api and the problem with connection errors handlering fully covered by configuration
But now we can see that a Basic api quite popular too. And I missed this problem with connections error in the design of basic api. |
Beta Was this translation helpful? Give feedback.
-
Case: Redis is unavailable.
Long time ago I had my own decorator that looked similar to (pseudo-code):
Question: how can I handle Redis downtime with "cashews"? Or I must to create a second Redis server that will be used as a fallback?
Beta Was this translation helpful? Give feedback.
All reactions