I'd like to know if there's any efficient way of using Apache HttpClientApache HttpClient
in a multithreaded environment in production.
I'd like to know if there's any efficient way of using Apache HttpClient in a multithreaded environment in production.
I'd like to know if there's any efficient way of using Apache HttpClient
in a multithreaded environment in production.
I have a library which is being used by customers and they are passing DataRequest
object which has userid
, various timeouts
and some other fields in it. Now I use this DataRequest
object to makecreate a URL and, then I make an HTTP call using Apache HttpClient
andApache HttpClient for which my service returns back a JSON response which I use it to make a DataResponse
objectcreate and return thisa DataResponse
object back to them.
Here is my DataClient
class used by customercustomers by passing a DataRequest
object to it:
I am implementing sync call as async + waiting
since I want to throttle them with the number of threads otherwise they can bombard our service without any control. My library will be used by lotlots of customers within our company and their applications won't ever shutdown, they will keep running alwaysall the time. The only thing that will happen is their machines will get restarted, that's all. I have to use timeout values present in my DataRequest
class in my Apache HttpClient
calls so that's why I am creating a RequestConfig
and using it with HttpClient
for each request. I am on Java 7.
I'd like to know if there's any efficient way of using Apache HttpClient in a multithreaded environment in production.
I have a library which is being used by customers and they are passing DataRequest
object which has userid
, various timeouts
and some other fields in it. Now I use this DataRequest
object to make a URL and then I make an HTTP call using Apache HttpClient
and my service returns back a JSON response which I use it to make a DataResponse
object and return this DataResponse
object back to them.
Here is my DataClient
class used by customer by passing DataRequest
object to it:
I am implementing sync call as async + waiting
since I want to throttle them with the number of threads otherwise they can bombard our service without any control. My library will be used by lot of customers within our company and their applications won't ever shutdown, they will keep running always. The only thing will happen is their machines will get restarted, that's all. I have to use timeout values present in my DataRequest
class in my Apache HttpClient
calls so that's why I am creating RequestConfig
and using it with HttpClient
for each request. I am on Java 7.
I'd like to know if there's any efficient way of using Apache HttpClient in multithreaded environment in production.
I have a library which is being used by customers and they are passing DataRequest
object which has userid
, various timeouts
and some other fields in it. Now I use this DataRequest
object to create a URL, then make an HTTP call using Apache HttpClient for which my service returns a JSON response which I use to create and return a DataResponse
object back to them.
Here is my DataClient
class used by customers by passing a DataRequest
object to it:
I am implementing sync call as async + waiting
since I want to throttle them with the number of threads otherwise they can bombard our service without any control. My library will be used by lots of customers within our company and their applications won't ever shutdown, they will keep running all the time. The only thing that will happen is their machines will get restarted, that's all. I have to use timeout values present in my DataRequest
class in my Apache HttpClient
calls so that's why I am creating a RequestConfig
and using it with HttpClient
for each request. I am on Java 7.
I'd like to know if there's any efficient way of using Apache HttpClient in a multithreaded environment in production.
I have a library which is being used by customercustomers and they are passing DataRequest
object which has userid
, various timeouts
and some other fields in it. Now I use this DataRequest
object to make a URL and then I make an HTTP call using Apache HttpClient
and my service returns back a JSON response which I use it to make a DataResponse
object and return this DataResponse
object back to them.
I have a library which is being used by customer and they are passing DataRequest
object which has userid
, various timeouts
and some other fields in it. Now I use this DataRequest
object to make a URL and then I make an HTTP call using Apache HttpClient
and my service returns back a JSON response which I use it to make a DataResponse
object and return this DataResponse
object back to them.
I have a library which is being used by customers and they are passing DataRequest
object which has userid
, various timeouts
and some other fields in it. Now I use this DataRequest
object to make a URL and then I make an HTTP call using Apache HttpClient
and my service returns back a JSON response which I use it to make a DataResponse
object and return this DataResponse
object back to them.