Discussion:
Global lock in http pool
Joan Balagueró
2018-07-10 10:01:06 UTC
Permalink
Hello,



We are using the async http client 4.1.2 in our app (an api Gateway).
Several installations are managing more than 15.000 requests simultaneous
opened, and now we are in the process to optimize some code in the proxy.



Some time ago we could read a thread talking about the global lock that http
pool has, in order to control the max connections parameter. To avoid a
possible lock contention in high concurrent scenarios, Oleg planned to
implement a new method to control the max connections in a more “relaxed”
way, that would not use the lock at the cost to not exactly control the
number of connections opened at any time.



Our question is if there is any schedule to have this method implemented, or
if it’s planned to release it in any of the next http client versions.



Thanks,



Joan.
Oleg Kalnichevski
2018-07-10 11:21:48 UTC
Permalink
Post by Joan Balagueró
Hello,
 
We are using the async http client 4.1.2 in our app (an api Gateway).
Several installations are managing more than 15.000 requests
simultaneous
opened, and now we are in the process to optimize some code in the proxy.
 
Some time ago we could read a thread talking about the global lock that http
pool has, in order to control the max connections parameter. To avoid a
possible lock contention in high concurrent scenarios, Oleg planned to
implement a new method to control the max connections in a more
“relaxed”
way, that would not use the lock at the cost to not exactly control the
number of connections opened at any time.
 
Our question is if there is any schedule to have this method
implemented, or
if it’s planned to release it in any of the next http client
versions.
It has already been implemented in HttpCore 5.0 and HttpClient 5.0

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Joan Balagueró
2018-07-10 11:25:22 UTC
Permalink
Thanks Oleg,
I'm using the Async Client (4.1.2), what must I do to have it available? Just move to HttpCore 5.0 / HttpClient 5.0?


-----Mensaje original-----
De: Oleg Kalnichevski [mailto:***@apache.org]
Enviado el: martes, 10 de julio de 2018 13:22
Para: HttpClient User Discussion
Asunto: Re: Global lock in http pool
Post by Joan Balagueró
Hello,
We are using the async http client 4.1.2 in our app (an api Gateway).
Several installations are managing more than 15.000 requests
simultaneous opened, and now we are in the process to optimize some
code in the proxy.
Some time ago we could read a thread talking about the global lock
that http pool has, in order to control the max connections parameter.
To avoid a possible lock contention in high concurrent scenarios, Oleg
planned to implement a new method to control the max connections in a
more “relaxed”
way, that would not use the lock at the cost to not exactly control
the number of connections opened at any time.
Our question is if there is any schedule to have this method
implemented, or if it’s planned to release it in any of the next http
client versions.
It has already been implemented in HttpCore 5.0 and HttpClient 5.0

Oleg

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




---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Oleg Kalnichevski
2018-07-10 11:34:11 UTC
Permalink
Thanks Oleg, 
I'm using the Async Client (4.1.2), what must I do to have it
available? Just move to HttpCore 5.0 / HttpClient 5.0?
You have two options: upgrading to HttpClient 5.0 or building a custom
connection manager.

Oleg
-----Mensaje original-----
Enviado el: martes, 10 de julio de 2018 13:22
Para: HttpClient User Discussion
Asunto: Re: Global lock in http pool
Post by Joan Balagueró
Hello,
 
We are using the async http client 4.1.2 in our app (an api
Gateway).
Several installations are managing more than 15.000 requests 
simultaneous opened, and now we are in the process to optimize
some 
code in the proxy.
 
Some time ago we could read a thread talking about the global lock 
that http pool has, in order to control the max connections
parameter. 
To avoid a possible lock contention in high concurrent scenarios,
Oleg 
planned to implement a new method to control the max connections in

more “relaxed”
way, that would not use the lock at the cost to not exactly
control 
the number of connections opened at any time.
 
Our question is if there is any schedule to have this method 
implemented, or if it’s planned to release it in any of the next
http 
client versions.
It has already been implemented in HttpCore 5.0 and HttpClient 5.0
Oleg
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Loading...