Conversation
Bumps ZiggyCreatures.FusionCache from 2.4.0 to 2.5.0 Bumps ZiggyCreatures.FusionCache.Serialization.SystemTextJson from 2.4.0 to 2.5.0 --- updated-dependencies: - dependency-name: ZiggyCreatures.FusionCache dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: ZiggyCreatures.FusionCache.Serialization.SystemTextJson dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated ZiggyCreatures.FusionCache from 2.4.0 to 2.5.0.
Release notes
Sourced from ZiggyCreatures.FusionCache's releases.
2.5.0
🛡️ Distributed Cache Stampede Protection
Since the very beginning FusionCache offered a solid Cache Stampede protection, as explained in the docs where it is clearly illustrated:
Such protection worked not just in the normal flow (miss -> factory -> return) but also with other more advanced features like:
With time the stampede protection got even better, and even extensible: this allowed 3rd party implementations of the core mechanism, called memory locker (
IFusionCacheMemoryLocker).All of this without removing the normal "it just works" experience since, by default, a
StandardMemoryLockeris used without needing any user setup or intervention.Cool.
But here's the thing: this protection had always been a local thing, meaning it did not span multiple nodes, in a distributed way: this meant that, if we were "unlucky", multiple factories could have run at the same time for the same cache key on different nodes.
Meaning, this:
But that was true until now: enter Distributed Cache Stampede Protection 🎉
Thanks to the introduction of the new
IFusionCacheDistributedLocker(see the next point) it's now possible to coordinate factory execution accross multiple nodes, so that only one factory would run at the same time for the same cache key even on different nodes.Meaning, this:
By providing an
IFusionCacheDistributedLockerimplementation during setup, FusionCache will take care of everything, we don't have to do anything else.The setup looks like this: