[go-nuts] Re: Multiple HTTP Clients best practice

2017-09-06 Thread Hawari Rahman
Hi Jakub, Yes, that's what we're finally doing now, we're using separate http.Client for each microservice. And I can say that the performance improvement is quite significant. Based on your comment, can you maybe give me an insight on the relationship between http.Client and http.Transport? Ca

[go-nuts] Re: Multiple HTTP Clients best practice

2017-09-06 Thread Jakub Labath
My first instinct is to simply use one http.Client per each micro service. So when talking to microservice A - i would retrieve the client for microservice A from somewhere. The immediate gain is that it presumably already has tcp connection (or several) open to the service A. It is also possi