Troubleshooting a Slow API Client in Golang

Troubleshooting a Slow API Client in Golang

Thursday, Dec 13, 2018

@ Chris Suttles

I'm writing an API client in golang, and while testing the API with curl, my results were reasonable (0.8 seconds REAL time), but when I got my API client working in golang with resty, I found that my response time was very slow (over 75 seconds). This is a true (and ugly) story about figuring out what was wrong and resolving the issue.Here's my boilerplate resty code: resty.SetDebug(true) resty.SetTLSClientConfig(&tls.Config{ InsecureSkipVerify: true }) resp, err := resty.

Social Links