Using MongoDB Atlas on Lambda throws Could not connect to any servers in MongoDB Atlas cluster error

So are you all 8 microservices should share the same connection pool? How would i be able to do that if they are all separate lambda functions

Or each lambda function shares its own connection pool and just does not create a new connection each invocation?