Hi Oleg,

We are going to try 5.4.1 with java24 and check the virtual threads 
performance. Just a couple of questions:

1. To make use of VT, do we need to enable some flag (like we do in tomcat with 
"useVirtualThreads=true" in the http connector)? Or simply using the classic 
(blocking) connection management APIs is enough to automatically make use of VT 
if we are in a java version >= 21?

2. If I'm not wrong, I remember the classic pool has a global lock to control 
the max connections in use. I think you created the LAX mode to mitigate some 
contention on this pool due to this global lock. Due to our internal 
implementation, we will need to control the number of requests sent to the 
backend by ourselves with a semaphore or an atomic counter or whatever ... If 
we want to completely remove the use of this lock, is it enough by setting the 
maxConnections to 0 (no matter if we are using the strict or lax mode)? 

Thanks,

Joan.








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

Reply via email to