feature: allow users to provide custom pool class #236
Labels
api: spanner
Issues related to the googleapis/nodejs-spanner API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
I think no one is a stranger to the fact that we've been seeing a fair amount of chatter around issues with our pooling implementation. Its come to my attention that some teams might want to opt out of certain features of our Pooling class or in some cases just have a finer level of control. I would like to propose accepting a Pool constructor that could be used in place of our Pooling class.
I've reviewed our code and with a light refactor I think the bare minimum could be the following interface
Integrating would be as simple as
Thoughts?
The text was updated successfully, but these errors were encountered: