<div dir="ltr">Hi,<div><br></div><div>I saw the following comments in ClientConnection.java </div><div><br></div><div><span style="color:rgb(103,103,103);font-family:&quot;Lucida Grande&quot;,Tahoma,Verdana,Arial,Helvetica,sans-serif;font-size:15.2px;background-color:rgb(239,239,239)">A client connection. This can be used to send requests, or to upgrade the connection.</span><p style="margin-top:0.2em;margin-bottom:0.2em;color:rgb(103,103,103);font-family:&quot;Lucida Grande&quot;,Tahoma,Verdana,Arial,Helvetica,sans-serif;font-size:15.2px;background-color:rgb(239,239,239)">In general these objects are not thread safe, they should only be used by the IO thread that is responsible for the connection. As a result this client does not provide a mechanism to perform blocking IO, it is designed for async operation only.</p><div><br></div><div>The above comments made me to rethink what I have done with the UndertowClient. I basically created a wrapper on top of UndertowClient so that I can have one service calling another service with an HTTP 2.0 connection shared by multiple requests. As I understand the HTTP 2.0 connection supports multiplex so that you can have multiple requests sent in the same channel in parallel. </div><div><br></div><div>Here is one of my examples and I have done some preliminary performance test without any issue. I am wondering if I should cache the connect as instance variable instead of static variable of HttpHandler. </div><div><br></div><div><a href="https://github.com/networknt/light-example-4j/blob/master/rest/ms_chain/api_a/httpschain/src/main/java/com/networknt/apia/handler/DataGetHandler.java">https://github.com/networknt/light-example-4j/blob/master/rest/ms_chain/api_a/httpschain/src/main/java/com/networknt/apia/handler/DataGetHandler.java</a></div><div><br></div><div>Also, I realized that if downstream server is not in HTTP 2.0, then I need to have a connection pool built in order to get better performance. Does anybody have some example of HTTP connection pool implementation? </div><div><br></div><div>Thanks,</div><div><br></div><div>Steve </div><div><br></div><p style="margin-top:0.2em;margin-bottom:0.2em;color:rgb(103,103,103);font-family:&quot;Lucida Grande&quot;,Tahoma,Verdana,Arial,Helvetica,sans-serif;font-size:15.2px;background-color:rgb(239,239,239)"></p><div class="gmail-javadoc-tag-area" style="margin-top:0.8em;color:rgb(103,103,103);font-family:&quot;Lucida Grande&quot;,Tahoma,Verdana,Arial,Helvetica,sans-serif;font-size:15.2px;background-color:rgb(239,239,239)"><dl style="margin-top:0px;margin-bottom:0.2em"></dl></div></div></div>