Using backplane #131
-
Hello. If I have problems connecting redis how will the cache behave in this case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @efortunov , I'm not sure I understand what you are asking, but I'll try to give you a complete picture of what FusionCache does in case of problems with the distributed cache or the backplane. All the options mentioned below, that can be used to customize the behavior of FusionCache, are either on the You can read more about the available options in the dedicated docs. Distributed Cache (more)When FusionCache talks with the distributed cache it can get an error, for various reasons: the Redis instance may have a problem, the network connection may have a problem or something else. Normally these errors are logged (and you can control with which When there are errors, sometimes the root cause may persist for some time and not be just a single occurrence: in this case it can help to leave the distributed cache alone for some time instead of keep bombarding it with requests. To do that you can set the option On top of "hard errors", there may also be just slowdowns, meaning that if Redis or the network are temporarily congested, you may actually get a response, but in a veeery long time. For that you can set the the options Finally, the distributed cache operations are normally awaited, but this can be avoided by just setting the option Backplane (more)For the backplane you basically have the same scenarios, the same possible problems and almost the same options:
One extra feature of the backplane is the auto-recovery: in case the backplane becomes temporarily unavailable, it will automatically put the missed notifications in a local queue, and will try to send them as soon as it will become available again. Special care has been put into this feature, so that notifications for cache entries that have already become useless are not sent (think a notification for a cache entry with a Auto-recovery is automatically enabled, but it can be turned off via the option Fail-Safe (more)What happens when a blocking error occurs (eg: while executing a factory, calling the distributed cache, etc)? ConclusionsAs you can see FusionCache should have you covered in any problematic situation: in case you are seeing something missing let me know, and we may think about a new feature or option to be added. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi @efortunov , I'm not sure I understand what you are asking, but I'll try to give you a complete picture of what FusionCache does in case of problems with the distributed cache or the backplane.
All the options mentioned below, that can be used to customize the behavior of FusionCache, are either on the
FusionCacheOptions
class (valid for an entire cache instance) or on theFusionCacheEntryOptions
class (valid for each cache entry/method call).You can read more about the available options in the dedicated docs.
Distributed Cache (more)
When FusionCache talks with the distributed cache it can get an error, for various reasons: the Redis instance may have a problem, the network connectio…