In http://developers.marketo.com/rest-api/error-codes one of the error codes states:
502 | Bad Gateway | The remote server returned an error. Likely a timeout. The request should be retried with exponential backoff.
In fact, exponential backoff is a good error handling strategy in many cases. https://github.com/litl/backoff already provides the feature; would you be willing to introduce a dependency on that package here so we could use it to decorate the execute method?
In http://developers.marketo.com/rest-api/error-codes one of the error codes states:
502 | Bad Gateway | The remote server returned an error. Likely a timeout. The request should be retried with exponential backoff.
In fact, exponential backoff is a good error handling strategy in many cases. https://github.com/litl/backoff already provides the feature; would you be willing to introduce a dependency on that package here so we could use it to decorate the
executemethod?