You have one example of. The text was updated successfully, but these errors were encountered: Hi @confusedIamHowBoutU , thanks for the question. So the following is calling our services Calculate method and its within this block that any retries etc. You can then wrap the fallback policy around the breaker policy to combine the two. Using Polly for .NET Resilience with .NET Core - Telerik Blogs Handling exceptions can be a hassle sometimes. There is a code example titled // Handle both exceptions and return values in one policy. If you want to expand your existing retryPolicy and breakPolicy to handle result codes as well as exceptions, see the documentation here. What is guidance around following pattern? Polly retry policy with sql holding transaction open. - rob.earwaker Aug 31, 2020 at 5:30 Add a comment Your Answer Post Your Answer Polly is a .NET library that provides resilience and transient-fault handling capabilities. 565), Improving the copy in the close modal and post notices - 2023 edition, New blog post from our CEO Prashanth: Community is the future of AI. From the Polly repository: Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. Does the 500-table limit still apply to the latest version of Cassandra? This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. Closing this issue as it looks like there are no problems with Polly here and everything is answered. (And would the decision be clear to all users, whichever we chose?). Have a contrib you'd like to publish under Polly-Contrib? Please show the code of the call site (either with or without the policy in use), if possible. Execution of actions allowed. @johnknoop Yes, this was delivered at Polly v5.0.0 and its eventual name was PolicyWrap. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Timeout policies throw TimeoutRejectedException when a timeout occurs. For more detail see: Bulkhead policy documentation on wiki. Asking for help, clarification, or responding to other answers. You can do so via this mechanism. Building Polly Fallbacks for Resilient .NET Service-to-Service But fluent interface like Handle