Vibhor Jaiswal
08/17/2022, 2:59 PMMayank
Mayank
Mayank
Vibhor Jaiswal
08/17/2022, 5:31 PMMayank
saurabh dubey
08/17/2022, 5:46 PMVibhor Jaiswal
08/17/2022, 6:24 PMMayank
Vibhor Jaiswal
08/17/2022, 8:59 PMConnection
objects, they'll share a singleton JsonAsyncHttpPinotClientTransport
instance, hence your application will only ever create 1 http client. Although reusing Connection
should work too."
And that response made me think that even if I make 10 connection in a connection pool in my application using java client ,internally there will be only one http clinet serving only one connection at a time . Is that correct ?Mayank
Vibhor Jaiswal
08/17/2022, 9:01 PMMayank
Mayank
Vibhor Jaiswal
08/17/2022, 9:21 PMsaurabh dubey
08/18/2022, 6:06 AMConnection
objects, they'll share a singleton JsonAsyncHttpPinotClientTransport
instance, hence your application will only ever create 1 http client. Although reusing Connection
should work too."
Was referring to the Connection
class (org.apache.pinot.client.Connection
) objects within pinot client. Creation of a new instance of this class does not lead to an actual TCP connection being opened b/w the application and pinot brokers.
The connection pooling that the http client allows is for the actual TCP connections (more specifically the netty channels since the client is netty based).
I.e. you can create as many org.apache.pinot.client.Connection
as you'd like, but the actual tcp connections being created will be limited by the client defaults, and will always be pooled.