Relative Content

Tag Archive for node.jsconnection-pooling

Generic Pool max and min not woking

I’m trying to access Redis through a Node.js server and send data via an API. To reduce stress on the server since this will be called multiple times, I’m using connection pooling with the generic-pool library. I have configured everything, and it’s working, but the connection pooling isn’t functioning as expected. When I set the max value to 20 and send 30 requests asynchronously, all the requests remain in a pending state. I’m not sure what’s going wrong.