A connection pool is a pool of nodes that the client knows about, to which an API request can be sent. The simplest type of connection pool is a single node connection pool, that simply contains a single node.
The client should be updated to accept a ConnectionPool, asking it for a node to which to make an API request. Initial thoughts here are that ConnectionPool would be a trait with a function that can be used to retrieve a "node" to which an API request can be made. A SingleNodeConnectionPool is part of the implementation, and other connection pools can be implemented in separate issues.
The client
send
function currently delegates toConnection
'ssend
functionThis is a seam to implement connection pooling.
A connection pool is a pool of nodes that the client knows about, to which an API request can be sent. The simplest type of connection pool is a single node connection pool, that simply contains a single node.
The client should be updated to accept a
ConnectionPool
, asking it for a node to which to make an API request. Initial thoughts here are thatConnectionPool
would be a trait with a function that can be used to retrieve a "node" to which an API request can be made. ASingleNodeConnectionPool
is part of the implementation, and other connection pools can be implemented in separate issues.