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
maxPoolSizeandmaxWaitQueueSizevalues for HttpClient? - What is the impact
maxPoolSizeandmaxWaitQueueSizevalues on memory and cpu? - What are the maximum values I can set to
maxPoolSizeandmaxWaitQueueSize? - Should I also use
setPipeliningoption ofHttpClient?