PackagePackagetypeA library you install and call yourself.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →

@sap-cloud-sdk/resilience

Timeouts, retries and circuit breaking around a remote call, so one slow downstream system does not take the application with it.

Facts

Latestv4.9.1ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
DestinationsCAPDestinationscapabilityReaching a system that is not yours — an S/4HANA tenant, an on-premise service, a third-party API — without the address, the credentials or the tunnel being written into the application. The destination is the indirection, and the reason an endpoint can move without a redeploy.

Who is behind it

SAPSAPOrganisationMaintains this
In the atlas: maintains 137, wrote 14
@SAP
maintainerArtem KovalovPersonContributes to this
In the atlas: contributes to 6
@artemkovalyov
SAP Cloud SDK BotPersonContributes to this
In the atlas: contributes to 11
@bot-sdk-js
BrigittaK307PersonContributes to this
In the atlas: contributes to 12
@BrigittaK307
Britta VarwigPersonContributes to this
In the atlas: contributes to 8
@bvarwig
Robert KaniaPersonContributes to this
In the atlas: contributes to 6
@cezaryrk
Christian SchüringsPersonContributes to this
In the atlas: contributes to 25
@cschuerings
Daniel KullmannPersonContributes to this
In the atlas: contributes to 6
@daniel-kullmann
David KnaackPersonContributes to this
In the atlas: contributes to 13, wrote 1
@davidkna-sap
Deeksha SinhaPersonContributes to this
In the atlas: contributes to 12
@deekshas8
Deni DajaPersonContributes to this
In the atlas: contributes to 6
@denidaja
38 contributors

Before choosing this

Conditions

LicenceSAP Developer License Agreement 3.2 CAP§ 1from DestinationsA destination used by a covered CAP application sends SAP product data to a non-SAP product rather than only addressing a remote endpoint.
  • § 1 License. Productive customer applications are limited to SAP BTP or another SAP-licensed platform, and mass extraction to a non-SAP product is restricted except where solely required for SAP interoperability.

A destination is configuration, not the deciding boundary. The licence becomes material when the resulting data flow is extraction into a non-SAP product, so the target and purpose need review.

SAP Developer License Agreement 3.2 CAP →

What it declares

Every artifact

Type
Package
Origin
By SAP

As a package

Where it runs
does not say
Distributed through
npm

Connections1

@sap-cloud-sdk/resilience connections@sap-cloud-sdk/resiliencePROVIDES→ provides1provides authoredDestinations

Install

npm add @sap-cloud-sdk/resilience

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from SAP/cloud-sdk-js under Apache-2.0, read
SAP/cloud-sdk-js/packages/resilience/README.mdOn GitHub

SAP Cloud SDK for JavaScript Logo

@sap-cloud-sdk/resilience

This package contains implementations for the resilience middlewares like a timeout or circuit breaker middleware. This concept of middlewares is totally generic, and you can use it for non-resilience use cases.

Installation

$ npm install @sap-cloud-sdk/resilience

Usage

Add a timeout middleware to a request.

executeHttpRequest(destination, { middleware: [ timeout() ] }, httpRequestOptions);

For more detailed overview visit our resilience documentation.

Support

The recommended way to get in touch with us is to create an issue on GitHub. Select the issue category Bug, Feature, or Question depending on the nature of your request. We try to provide fixes, features and answers as soon as possible.

Contribute

If you would like to contribute to the SAP Cloud SDK, please make yourself familiar with our contributing guidelines and follow the given instructions.

License

The SAP Cloud SDK is released under the Apache License Version 2.0.

Apache-2.0, read

History

Latest

v4.9.1

Fixes 2

Notes
Patch Changes
  • e8f8134: [fix] Export ./internal.js named export in package.json for compatibility. Please migrate to the new named export ./internal, the old export is deprecated and will be removed in the next major release.
  • @sap-cloud-sdk/util@4.9.1
  1. v4.9.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.9.0
  2. v4.8.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.8.0
  3. v4.7.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.7.0
  4. v4.6.0

    Fixes 1

    Notes
    Patch Changes
    • Updated dependencies [a6c8ff6]
      • @sap-cloud-sdk/util@4.6.0
  5. v4.5.1

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.5.1
  6. v4.5.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.5.0
  7. v4.4.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.4.0
  8. v4.3.1

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.3.1
  9. v4.3.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.3.0
  10. v4.2.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.2.0
  11. v4.1.2

    Fixes 2

    Notes
    Patch Changes
    • 011b841: [Fixed Issue] Update axios to 1.12.2 to fix vulnerability to DoS attack. Refer here for more details.
    • Updated dependencies [011b841]
      • @sap-cloud-sdk/util@4.1.2
  12. v4.1.1

    Fixes 2

    Notes
    Patch Changes
    • b502b40: [Fixed Issue] Update axios to 1.11.0 to use non-vulnerable version of form-data.
    • Updated dependencies [b502b40]
      • @sap-cloud-sdk/util@4.1.1
  13. v4.1.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.1.0
  14. v4.0.2

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.0.2
  15. v4.0.1

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@4.0.1
  16. v4.0.0dated in the atlas

    Breaking 1, Fixes 3

    Notes
    Major Changes
    • 7d92a1b: [Compatibility Note] The following deprecated content has been removed from the package:
      • The circuitBreakerHttp constant has been removed. Use circuitBreaker instead.
    Patch Changes
    • Updated dependencies [7d92a1b]
    • Updated dependencies [936a6eb]
    • Updated dependencies [4228412]
      • @sap-cloud-sdk/util@4.0.0
  17. v3.24.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.24.0
  18. v3.23.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.23.0
  19. v3.22.2

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.22.2
  20. v3.22.1

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.22.1
  21. v3.22.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.22.0
  22. v3.21.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.21.0
  23. v3.20.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.20.0
  24. v3.19.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.19.0
  25. v3.18.1

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.18.1
  26. v3.18.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.18.0
  27. v3.17.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.17.0
  28. v3.16.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.16.0
  29. v3.15.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.15.0
  30. v3.14.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.14.0
  31. v3.13.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.13.0
  32. v3.12.1

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.12.1
  33. v3.12.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.12.0
  34. v3.11.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.11.0
  35. v3.10.0

    Fixes 1

    Notes
    Patch Changes
    • Updated dependencies [4d2b49b]
      • @sap-cloud-sdk/util@3.10.0
  36. v3.9.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.9.0
  37. v3.8.1

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.8.1
  38. v3.8.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.8.0
  39. v3.7.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.7.0
  40. v3.6.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.6.0
  41. v3.5.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.5.0
  42. v3.4.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.4.0
  43. v3.3.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.3.0
  44. v3.2.0

    Fixes 1

    Notes
    Patch Changes
    • 234675fc3: [Fixed Issue] Fix parsing error when the last response in a chain of retries returned undefined.
      • @sap-cloud-sdk/util@3.2.0
  45. v3.1.1

    Fixes 1

    Notes
    Patch Changes
    • 166a16d82: [Fixed Issue] Fix transpilation on OData generation, where types for 'opossum' could not be found.
      • @sap-cloud-sdk/util@3.1.1
  46. v3.1.0

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.1.0
  47. v3.0.2

    Fixes 1

    Notes
    Patch Changes
    • @sap-cloud-sdk/util@3.0.2
  48. v3.0.1

    Fixes 1

    Notes
    Patch Changes
    • fcab06c4b: [Compatibility Note] Deprecate erroneously exposed circuitBreakerHttp() function in favor of circuitBreaker().
      • @sap-cloud-sdk/util@3.0.1
  49. v3.0.0dated in the atlas

    Breaking 2, Features 2, Fixes 4

    Notes
    Major Changes
    • fde964e37: [Compatibility Note] Remove the options timeout and enableCircuitBreaker from all BTP service interactions i.e. destination and token fetching.
    • fde964e37: [Compatibility Note] Switch the compilerOptions.module to Node16 instead of CommonJS for better interoperability with ES modules. See the TypeScript handbook for technical details if needed.
    Minor Changes
    • fde964e37: [New Functionality] The request configuration used in the final request is now part of the middleware context. User can implement middlewares to change request properties like headers using this reference in the middleware context. The request configuration contains the url, headers and all other properties of the HTTP request.
    • fde964e37: [New Functionality] Add ResilienceOptions and resilience() function. The function returns an array of middlewares based on the provided options.
    Patch Changes
    • Updated dependencies [fde964e37]
    • Updated dependencies [fde964e37]
    • Updated dependencies [fde964e37]
    • Updated dependencies [fde964e37]
      • @sap-cloud-sdk/util@3.0.0
45,303downloads per week, npm
Weekly downloads for @sap-cloud-sdk/resilience26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 45303.27 Apr – 3 May: 97,4434 May – 10 May: 112,38711 May – 17 May: 114,10218 May – 24 May: 113,30825 May – 31 May: 115,9031 Jun – 7 Jun: 139,1888 Jun – 14 Jun: 193,56315 Jun – 21 Jun: 158,87122 Jun – 28 Jun: 158,38129 Jun – 5 Jul: 152,1526 Jul – 12 Jul: 152,98113 Jul – 19 Jul: 284,31620 Jul – 26 Jul: 223,70727 Jul – 2 Aug: 273,4523 Aug – 9 Aug: 235,68610 Aug – 16 Aug: 212,53117 Aug – 23 Aug: 250,03824 Aug – 30 Aug: 265,21831 Aug – 6 Sept: 203,7467 Sept – 13 Sept: 177,96614 Sept – 20 Sept: 199,74921 Sept – 27 Sept: 249,94028 Sept – 4 Oct: 295,7005 Oct – 11 Oct: 211,60312 Oct – 18 Oct: 115,56419 Oct – 25 Oct: 45,303
Destinations
  1. SAP Destination serviceNamed, credentialed addresses of other systems resolved at runtime
  2. com.sap.cds:cds-feature-remote-odataRemote Services for consuming OData V2 and V4 APIs in CAP Java
  3. com.sap.cds:cds-integration-cloud-sdkSAP Cloud SDK integration for remote REST services in CAP Java
  4. capire/s4Prebuilt SAP S/4HANA integration package for CAP projects
  5. cdseDestination resolution and axios calls from CAP configuration
  6. @sap/cdsCAP Node.js runtime
  7. @sap-cloud-sdk/connectivityDestination lookup and connectivity proxy for the Cloud SDK
  8. @sap-cloud-sdk/http-clientHTTP client carrying a destination's credentials
  9. @sap-cloud-sdk/odata-commonShared machinery under the Cloud SDK's OData and OpenAPI clients
  10. @sap-cloud-sdk/openapiGenerated OpenAPI clients for the Cloud SDK
  11. @sap-cloud-sdk/utilGeneral utilities shared across the Cloud SDK packages
  12. @sapmentors/cds-scp-apiNode module for CAP calling external APIs through a destination

Details

Sources5
npm registrydiscovered herechecked
The discovery passdiscovered herechecked
npm registry, @sap-cloud-sdk/resilienceversion, releases, installschecked
github.com/git+https://github.com/SAP/cloud-sdk-js.gittree, pushes, contributors, CIchecked
packages/resilience/README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv4.9.1
first release
releases and cadence1054, ~2d median
discovered vianpm registry, The discovery pass
first seen in the atlas
ecosystem and domaincap, integration-and-messaging
Contributors38
History in the atlas3
  1. Typed cds-plugin by placement, which defaults every candidate to that. It is not one.
  2. Timeouts, retries and circuit breaking around a remote call, so one slow downstream system does not take the application with it.
  3. First seen.
For your agent
Ref
artifact:sap-cloud-sdk-resilience
JSON
/artifacts/sap-cloud-sdk-resilience.json
MCP
Connecting an agent