I have created a one java backend service in vertx java. I used httpClient(io.vertx.core.http.HttpClient
) with connection pooling enabled to connect to external services. I am excepting throughput of 50. For each request to my service I need to connect to external service. Average response time for my service is 4 seconds and external service is around 3 seconds.
Now my questions are
- How can I derive
maxPoolSize
andmaxWaitQueueSize
values for HttpClient? - What is the impact
maxPoolSize
andmaxWaitQueueSize
values on memory and cpu? - What are the maximum values I can set to
maxPoolSize
andmaxWaitQueueSize
? - Should I also use
setPipelining
option ofHttpClient
?