MongoDB Too Many Connections in Serverless Node.js: The Fix

MongoDB too many connections in serverless Node.js? Fix it with a cached client, a sized maxPoolSize, idle timeouts and Atlas rate-limit math for Lambda.

MongoDB too many connections in serverless Node.js? Fix it with a cached client, a sized maxPoolSize, idle timeouts and Atlas rate-limit math for Lambda.