You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the SDK leverages an exponential backoff retry mechanism. Exponential backoff allows for the SDK to make multiple attempts to resolve throttled requests, increasing the amount of time to wait for each subsequent attempt. Outgoing requests will retry when a `429` status code is returned from the platform.
96
+
97
+
The exponential backoff parameters are as follows:
98
+
99
+
-`retryAfter` - The amount of time, in milliseconds, to wait between throttled request attempts.
100
+
101
+
Optional, will default to 5,000.
102
+
103
+
-`maxRetries` - The maximum number of times to retry throttled requests.
104
+
105
+
Optional, will default to 10.
106
+
107
+
-`timeMultiple` - The multiple by which to increase the wait time between each throttled request attempt.
108
+
109
+
Optional, will default to 2.
110
+
111
+
You may configure the exponential backoff that will be applied to all outgoing requests. To do so, specify use the `BackoffOptionsBuilder` class to create a `BackoffOptions` object when creating either a `PushService`, `PushSource`, or `StreamService` object:
By default, requests will retry a maximum of 10 times, waiting 5 seconds after the first attempt, with a time multiple of 2 (which will equate to a maximum execution time of roughly 1.5 hours).
122
+
93
123
## Logging
94
124
95
125
If you want to push multiple documents to your Coveo organization and use a service for that (e.g. `PushService`, `StreamService`), you may find it useful to configure a **logger** to catch error and warning messages.
0 commit comments