Skip to content
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

Logical Timeout/Slow Response Policy? #935

Closed
znelson32 opened this issue Apr 12, 2022 · 3 comments
Closed

Logical Timeout/Slow Response Policy? #935

znelson32 opened this issue Apr 12, 2022 · 3 comments
Labels
stale Stale issues or pull requests

Comments

@znelson32
Copy link

znelson32 commented Apr 12, 2022

Summary: What are you wanting to achieve?
Isolating slow responses / logical timeouts on a service call which contribute to the opening of a circuit breaker, however, accomplishing this by allowing the service calls to complete. For ex., if a service call exceeds a Timespan, allow it to continue (because it may ultimately be successful) but logically fail the call in regards to the circuit breaker's perspective such that if enough calls are slow the breaker will open. The use case could be slow database queries where after n-seconds you want to stop additional calls from piling up on the database server but you want the initial few calls to complete (or ultimately fail outright but that part is already something Polly does).

What code or approach do you have so far?
Nothing. Unsure of how to implement this in a custom AsyncPolicy as it appears the mechanism to open a breaker (or vote for its opening) is either throwing exceptions (which would terminate the service call) or fully opening the breaker via Isolate() which any given thread should not be able to do on its own.

It is always useful to see:

  • code of any policy declarations,
  • code of the calls to .Execute/AndCapture/Async(...)
@martincostello
Copy link
Member

@martintmk Is there anything in v8 that would fulfil this feature request?

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

@github-actions github-actions bot added the stale Stale issues or pull requests label Aug 16, 2023
@github-actions
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issues or pull requests
Projects
None yet
Development

No branches or pull requests

2 participants