Add Resilience configuration options
See original GitHub issueIs your feature request related to a problem? Please describe.
When dealing with Destination services, it is quite often necessary to re-send an API call against a given endpoint. In our case, we (i.e. SAP Graph Team) have the need of sending “hundreds” - and potentially “thousands” - of requests against Destination service. To reach such behaviour, today a developer needs to implement it by his/her-self with an additional layer of custom code (and it should not be build on every SDK-based project again and again…).
Describe the solution you’d like
As already in place in Java version of Cloud SDK (see ResilienceConfiguration.RetryConfiguration), it would be great to add ResilienceConfigurationOptions
- in particular, the retry config - also to JS/TS version of CloudSDK, enabling (at least) the followings:
- option-set from Java version;
- non linear delay in the resilience;
- option for switching on in
getDestination
,executeHttp
,execute
andfetchDestination
; - possibility to add an interceptor’s callback method.
Impact / Priority
Affected development phase: Product Release
Impact: Impaired and feature fix Blocked
Timeline: Upcoming Product release.
Additional context Already had a short discussion with @FrankEssenberger.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
No I wanted to ping @johenning from the sap graph team. Sorry.
This could be a quick win to include it: https://www.npmjs.com/package/axios-retry