Open guibranco opened 1 year ago
@guibranco Pull request completed! Check it out here https://github.com/guibranco/Sankhya-SDK-dotnet/pull/284 🚀
Note: I automatically create a pull request for an unassigned and open issue in order from oldest to newest once a day at 00:00 UTC, as long as you have remaining automation usage. Should you have any questions or wish to change settings or limits, please feel free to contact info@gitauto.ai or invite us to Slack Connect.
Is your feature request related to a problem? Please describe.
Currently, the
SankhyaWrapper
does not handle transient faults effectively, which can lead to failures during API calls. To enhance the resilience of the application, it's essential to implement a retry mechanism, timeout, and circuit breaker patterns.Describe the solution you'd like
Integrate the Polly library into the
SankhyaWrapper
to implement the following resilience strategies:Implementation References:
SankhyaWrapper
code at the SankhyaWrapper.cs for context on the current implementation.Example Implementation:
Below is a sample implementation of how to configure Polly in the
SankhyaWrapper
:Additional Context
Implementing these policies will significantly improve the reliability of the
SankhyaWrapper
when interacting with external services, leading to a better user experience and reduced downtime.