-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]: Resilience Execution #2494
Comments
Thanks for opening this issue. At first glance I'm not sure this is something we'd want. Usage in the manner described is creating more overhead through the addition objects and need to enumerate the invocations, and Polly v8 was designed to be low allocation, so this would go counter to that. Also the interface only allows for invocations with one specific signature, and doesn't have the flexibility of the additional overloads the abstract strategies have to accept a context and /or state as well as a CancellationToken. Can you provide some further details about the motivating factors on why this is something you think would be a good addition to the core library? It just looks like syntactic sugar specific to how you happen to use Polly in your own application. |
Thanks for reviewing this.
Not sure if this interface design is right approach, but the key motivation & goal from me is to Combine Execution & ResiliencePipeline & ResiliencePolicy easily. |
Sharing some background about why I name it as
|
I'm afraid I'm still not convinced of the need to have this baked into the core library. Maybe a more fully-fleshed out example (by which I mean something we could actually run) of this being used by real-world code would help with the sales pitch 😄. |
Yes, let me make one draft PR on |
Is your feature request related to a specific problem? Or an existing feature?
Polly already supports 2 main core concepts:
What I want to is:
I used it somewhere but wanted to contribute it back to Polly as I think it should be general and after it is added in polly, user can create resilience business logic easily & quickly. It can also be used for non-http related resilience.
Sample usage:
Describe the solution you'd like
Additional context
IInvoker could be public.
CompositeInvoker could reuse current Composite infra in Polly Core.
No response
The text was updated successfully, but these errors were encountered: