Tutorial: Using and Configuring Connection Retry
The Data Hub Adapter is an extension of SAP Commerce Cloud. When data is moving from Data Hub to SAP Commerce Cloud and there is an interruption, Data Hub Adapter attempts to reconnect to Data Hub. You control how this effort works.
Using the following properties, you control how Data Hub Adapter reacts to a broken connection with Data Hub:
| Property Value | Description |
|---|---|
| datahubadapter.retry.initial.interval.millis = 1000 | The initial sleep interval in milliseconds. |
| datahubadapter.retry.multiplier = 2 | The value to increment the exponential seed with for each retry attempt. |
| datahubadapter.retry.max.attempts = 5 | The maximum number of attempts. |
| datahubadapter.retry.max.interval.millis = 256000 | The maximum value of the wait time in milliseconds. |
Set these properties in the local.properties of your SAP Commerce Cloud installation. Find the file in the <HYBRIS_HOME>/config/ directory.
Exercise: Test Data Hub Connection Retry
Context
In the following scenario, you break a connection between Data Hub and Data Hub Adapter while data is flowing.