Hi Simone,
Thanks for the inputs.
Here are some follow up questions:
2. AddressResolutionTimeout: What is the significance to set this timeout
> property? We do set the connection timeout. If addressResolutionTimeout is
> not explicitly set, does this property default to connection timeout?
This is the timeout for DNS resolution, that is to resolve the host
name in string form to an IP address.
Once the host name is resolved, it can be used to open a connection,
where the connectionTimeout applies.
Therefore, the addressResolutionTimeout and the connectTimeout are not
related (much).
> In that case, the purpose of setting this property would help in identifying a request
that carries a bad host name before even trying to establish a connection and result in exceptions like UnknownHostException.
Can you please clarify this?
Also, we have a use case wherein we have a requirement to send approximately 10,000 HTTP/2 requests per second to a target end point.
We plan to configure the client object with 1 connection and a high value of the number of queued requests.
(Also, as mentioned in the Java Docs, it is advised to set the number of connections property to a maximum of 2.)
We do have a throttling mechanism on our end to send approx to trigger 10,000 requests from the client end.
Is there a correlation that we could use to set the number of queued requests with 1 connection with the throughput we want to achieve to be able to send these requests successfully without running into request rejection failures or in such a scenario, can we configure the client object with a higher number of connection.
Please let me know your recommendation.
Thanks
Neha