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
General guidance is to implement backoffs when retrying to prevent overloading the server.
The suggestion is to support a function that returns the amount of time to delay before attempting the retry. This approach would support different approaches to backoffs (constant value, linear, exponential, jitter, no jitter).
Something similar to this:
/** * @param {number} requestAttempts Amount of times that the request has been made. */functionbackoff(requestAttempts){return(requestAttempts*20);}
The text was updated successfully, but these errors were encountered:
When calling a service with the
retry
option, it will immediately make a retry request after the first failure:grpc-caller/lib/client.js
Lines 47 to 64 in 549484c
General guidance is to implement backoffs when retrying to prevent overloading the server.
The suggestion is to support a function that returns the amount of time to delay before attempting the retry. This approach would support different approaches to backoffs (constant value, linear, exponential, jitter, no jitter).
Something similar to this:
The text was updated successfully, but these errors were encountered: