ZiggyCreatures / FusionCache

FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
MIT License
1.65k stars 87 forks source link

[FEATURE] 🐵 Add `AbstractChaosComponent` #167

Closed jodydonetti closed 9 months ago

jodydonetti commented 1 year ago

Problem

Not really a problem, but right now all the chaos-related components (ChaosBackplane, ChaosDistributedCache, etc) all re-implement the same core properties and methods to control throws probability, random delays and so on.

Now that these components exist for some time and they are working well, they should be refactored a little bit.

Solution

A new AbstractChaosComponent should be created, containing all the common props like ChaosThrowProbability, ChaosMinDelay, etc and the common methods like SetAlwaysChaos(), SetNeverChaos(), and so on, and all the existing components should inherit from this base abstract class.

jodydonetti commented 1 year ago

Hi all, the v0.24.0-preview1 pre-release is out now on Nuget 🎉

NOTE: remember to check the "include prerelease" checkbox in your IDE to see it!

jodydonetti commented 9 months ago

Hi all, the v0.24.0 release is out now on Nuget 🎉

It is a massive release with a lot of new features, optimizations and more, I suggest to check out the release notes.