Retry Mechanism
Retry mechanism is a facility that ensures the delivery of messages from CentraSite to API-Portal, and protects requests from transient failures that might occur while sending messages from CentraSite to API-Portal.
When an API developer requests an API access token (access token of type API key or OAuth2) in API-Portal, CentraSite receives the request for the access token, and processes the request. CentraSite then generates the access token and sends the access token details to the API-Portal. If a transient failure occurs while sending the access token to the API-Portal, CentraSite uses the retry mechanism to resend the token. Requests for renewal and revocation of access tokens are also handled in a similar manner.
CentraSite uses the global values set for numberOfRetries and retryIntervals to resend the tokens to API-Portal. For n retries, specify n number of values (comma separated) for retry intervals. By default, numberOfRetries = 5 and retryIntervals = 10,300,900,1800,3600 seconds. In case of a transient failure, CentraSite tries to resend the token 5 times at time intervals of 10,300,900,1800 and 3600 seconds respectively.
Note: | If numberOfRetries is more than the number of values specified for retryIntervals, CentraSite uses the last time interval specified in retryIntervals for the remaining retry attempts. For example, if numberOfRetries = 5 and retryIntervals = 10,300,900,1800 seconds, CentraSite tries to resend the token 5 times at time intervals of 10,300,900,1800,1800 seconds. If numberOfRetries is less than the number of values specified for retryIntervals, CentraSite ignores the values that are beyond the value set for numberOfRetries. For example, if numberOfRetries = 4 and retryIntervals = 10,300,900,1800,3600,7200 seconds, CentraSite tries to resend the token 4 times at time intervals of 10,300,900,1800 seconds. Time intervals beyond 1800 seconds are ignored. |