Option to renew memory cache upon receiving BackplaneMessageAction.EntrySet #78
Replies: 1 comment 1 reply
-
Hi @angularsen , I can confirm that your understanding is correct: cache entries will be evicted on nodes 2 and 3 when there's an update on node 1. A couple of notes behind these design decisions:
One additional note, which I think is very important: the cache entries are NOT completely removed from each nodes' memory cache when notified of a change, but only evicted in a "special way", meaning that they are basically marked as expired but are still there to be used as a fallback in case of problems/timeouts. Maybe I should augment the backplane docs to better clarify this, will do asap. Anyway, having specified all of this, I'm wondering if you still think it would be a good idea to automatically refresh cache entries after a change: what do you think? While waiting for your opinion I'll comment on your other points:
If adding this, it would have to be added on the
This is automatically the way in FusionCache, thanks to the use of the forementioned
This is already there thanks to fail-safe + soft timeout
This is already there thanks to fail-safe
Exactly
Yep Let me know if you still think this feature would be necessary. Thanks! |
Beta Was this translation helpful? Give feedback.
-
From docs it seems memory cache for node 2 and 3 is evicted when node 1 updates the distributed cache with GetOrSet().
Proposal:
BackplaneMessageAction.EntrySet
, defaulting to eviction for backwards compatibility.Pros:
Cons:
Beta Was this translation helpful? Give feedback.
All reactions