Skip to content

.NET 7 💥 - Polly 🐦 Fault Handling / Resiliency / Retry Policy / Circuit Breaker

Notifications You must be signed in to change notification settings

N1k0l1n/Polly-Web-App

Repository files navigation

C# .NET 7 Polly Fault Handling/Resiliency/Retry Policy/Circuit Breaker

Overview

This repository demonstrates the implementation of fault handling, resiliency, retry policies, and circuit breakers in C# .NET 7 using Polly, a .NET resilience and transient-fault-handling library.

Features

  • Fault Handling: Handle transient faults gracefully to improve application robustness.
  • Resiliency: Ensure the system continues to function in the presence of faults.
  • Retry Policies: Define and apply retry policies for handling transient faults.
  • Circuit Breaker: Prevents the system from making calls that are likely to fail.

Installation

Prerequisites

  • .NET 7 SDK installed

Steps

  1. Clone this repository.
  2. Open the solution in your preferred IDE (Visual Studio, VS Code, etc.).
  3. Build the solution to restore the necessary packages.

Usage

To integrate Polly for fault handling, resiliency, retry policies, or circuit breakers within your C# .NET 7 project:

  1. Add references to the required Polly NuGet packages in your project.
  2. Implement Polly policies as needed within your codebase.
  3. Follow the examples and guidelines provided in the project's source code.

Examples

  • dotnet build run

Contributing

Contributions are welcome! If you encounter issues or have enhancements to propose, feel free to submit pull requests or issues.

License

This project is licensed under MIT

About

.NET 7 💥 - Polly 🐦 Fault Handling / Resiliency / Retry Policy / Circuit Breaker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages