ok2c commented on PR #728:
URL: 
https://github.com/apache/httpcomponents-client/pull/728#issuecomment-3647603158

   @arturobernalg This is better. Please mark new setters in the builder 
classes as experimental.
   
   Okay, this is what we have now
   
   Users could now limit the number of concurrent active requests on a per 
client basis. How useful is that, though? Say, one sets max concurrent request 
number to 1000, then opens 100 active connections and equally distributes 
requests over those connections. 10 concurrent requests per connection is very 
little. However, having just one connection and trying to execute 1000 requests 
concurrently over it would likely be wrong.
   
   What would be more useful is to cap the total number of requests on a per 
connection basis. 
   
   What could also be useful is enqueuing requests instead of failing them and 
executing them as soon as the number of concurrent requests drops below the 
maximum. Moreover, the same queuing mechanism could be used to re-queue and 
retry requests that did not get executed due to the opposite endpoint closing 
the connection. 
   
   This change-set is a start in the right direction. Let's keep it though 
clearly marked as experimental for now.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to