Skip to content

Guides ​

Complete, step-by-step scenarios for common resilience tasks. Each guide takes you from the problem to a working implementation.

If you are new to NResilience, see Key concepts to learn about policies, verdicts, and the library's core vocabulary.

GuideGoal
Retry an HTTP callEnsure an API call succeeds despite occasional transient failures.
Protect a dependencyUse a circuit breaker to prevent a flaky dependency from affecting the rest of your application.
Resource isolation with bulkheadsPrevent one slow dependency from monopolizing your application's resources.
Translate a layered pipeline to the flat modelMap a traditional middleware chain onto the flat executor's hooks and a call-site branch.
Configure from appsettingsUpdate policy settings, such as deadlines, without redeploying the application.
Test a policyWrite fast, reliable tests to verify that your policies behave as expected.

Released under the MIT License.