We recently switched from HTTP/1 to HTTP/2 for our server communication and using OKHTTP library on the client to talk to the server.
this.client = new OkHttpClient.Builder()
.protocols(Protocol.H2_PRIOR_KNOWLEDGE)
.connectionSpecs(Collections.singletonList(ConnectionSpec.CLEARTEXT))
.build();
Previously we were using connection pools with Http1. Now with multiplexing feature with HTTP2 I am not sure if its a good idea to use a connection pool and how it would work anyways.
Any advise on some pros and cons of using a connection pool with Http2 and any general guidelines on how to tune it?