SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
64 stars 47 forks source link

Retry http callout feature #119

Open syunyama opened 2 years ago

syunyama commented 2 years ago

Is your feature request related to a problem? Please describe. Sometime I got error like this:

エラー要素 ia_publishB2CCommerceProfileUpdates (FlowActionCall)。
An Apex error occurred: System.CalloutException: [xxxxxxxxxxxxxx.dx.commercecloud.salesforce.com:443](http://xxxxxxxxxxxxxx.dx.commercecloud.salesforce.com:443/) failed to respond

HTTP callout can be failed for some reason like network condition, busy server and so on.

Describe the solution you'd like Retry callout feature should be suit. Especially Exponential Backoff retry.

Describe alternatives you've considered Making queues for requests and if a request fails, it goes to dead queue. We can monitor dead queue and retry manually.