Skip to content

switch to using pester.Client instead of http.Client#29

Open
jrandall wants to merge 1 commit intofanatic:masterfrom
wtsi-hgi:http-pester
Open

switch to using pester.Client instead of http.Client#29
jrandall wants to merge 1 commit intofanatic:masterfrom
wtsi-hgi:http-pester

Conversation

@jrandall
Copy link

switches from using standard http.Client to pester.Client in order to add retries with backoff in case the infoblox server responds with a temporary error or the connection is interrupted.

@fanatic
Copy link
Owner

fanatic commented Nov 30, 2017

I have to think about this. I'm not sure it's common for API client libraries to implement retries internally, especially given the nature of Infoblox.

I wouldn't want to send a request for a new Host record, have Infoblox create one but send an error response, and accidentally create multiple Hosts.

It also doesn't keep track of non-retryable errors. The documentation states..

Server Error. The error was not caused by any error in the request. Depending on the error the request may be successfully repeated as is.

I'd be concerned about retrying every returned 5xx status code without regard to the error message itself.

In our production use of this library, we haven't found Infoblox connections to be intermittent or for our appliance to return temporary errors. It's generally a stable and well behaving product.

@jrandall
Copy link
Author

jrandall commented Nov 30, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants