Nodejs, Mongoose reusing connection slows db down

Hi there,

We have a nodejs Api running with Express and connecting to MongoDb Atlas via Mongoose.

So when the app starts up we create the db connection and we reuse that connection for all requests coming in on express routes.

So for some reason if we start getting a lot of requests, meaning the more requests comes in the slower the db response time becomes.

This is for all operations, Queries, Inserts and Updated all gets slow after a bunch of requests are completed.

Could this be something we need to adjust in MongoDb Atlas, Or code issue?

From What I read Pooling connections is the way to go. I think the problem is, all these requests to the db with the same connection, seem to be slowing down the requests.

Please can someone help ?