Comments (4)
I realize that I haven't explained my actual use case.
All these methods "get" calls a service that sometimes encounters errors (sql timeouts) In this case, I want to open a circuit breaker in order to no longer be affected by service timeouts. In addition, I use a fallback to call another service.
from polly.
In addition, I use a fallback to call another service.
Sounds like you want to use a hedging strategy to do that.
from polly.
@martincostello It sounds interesting, especially the fallback mode, which is a bit like what I'm describing. However, the first process is always called once, every time. Like a circuit breaker, I'd like to be able to go straight into fallback for N minutes.
What I'm trying to do is to share a circuit breaker in a single controller that allows different IO calls. This's the first part and it's easy.
When the circuit is open, I want to call a fallback with a different callback per call (within my controller).
I was able to do this with api v7, but with api v8, it's harder to imagine.
from polly.
@nuzolx, In your V8 example try to put fallback above the circuit breaker.
You can check these docs to understand how fallback is executed:
https://www.pollydocs.org/strategies/fallback.html#fallback-after-retries
from polly.
Related Issues (20)
- Refresh Authorization Code on When.All (causing multiple refresh authentications) HOT 14
- [Bug]: Pipeline disposed and cannot be used anymore HOT 16
- [Question]: Primary Hedging Resiliency Context not being propagated to Action Context? HOT 1
- [Question]: Usage of ExecuteOutcomeAsync HOT 9
- [Feature request]: StrategyHelper, DisposeHelper, TimeProviderExtensions, TaskHelper should be public not internal HOT 6
- [Question]: Mock Policy Timing behaviour HOT 3
- [Question]: How to use ExecuteAsync In VB.Net? HOT 8
- [Question]: How to respect 429 errors and Retry-After headers in Polly v8? HOT 14
- Remove polyfill packages HOT 7
- Deprecate all packages which are no longer maintained HOT 5
- Consider making Polly easier to consume from F# and Visual Basic HOT 1
- Fix CI for macos-latest HOT 1
- [Feature request]: Conditionally set log levels for specific resilience policy HOT 1
- [Bug]: README has improper grammar, which makes the meaning unclear. HOT 2
- [Question]: Polly v8 AddPolicyHandler HOT 3
- Is there a way to execute an action AFTER a retry in Polly v8? HOT 7
- [Bug]: System.InvalidOperationException thrown when registering with AddResiliencePipeline in .NET 8 Isolated Function App HOT 1
- [Feature request]: Simplified and faster alternative to ExecuteOutcomeAsync HOT 5
- [Docs]: The main category pages are only available through the breadcrumbs HOT 5
- What's the origin of the name Polly? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polly.