hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: What is the recommended way to use HttpClient
Date Tue, 19 May 2015 08:31:51 GMT
On Tue, 2015-05-19 at 08:28 +0530, Mahendran Pirinthapan wrote:
> Hi all,
> In one of our project we are using httpclient-4.1.1 (we have to stick with
> this version for some reason) to send requests to a remote server. We are
> having a long running production environment for this project and we can
> not restart the server frequently.
> Currently we are using the httpclient in singleton manner. That is, we are
> using the same httpclient instance to handle all the request using
> ThreadSafeClientConnManager. In our production environment there can be
> hundreds of request parallel.
> Now I would like to know what would be the recommended way to use the
> httpclient. Using in singleton manner?

singleton per distinct HTTP service is the recommended way.


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message