DEV Community

Discussion on: A crash course on Serverless APIs with Express and MongoDB

Collapse
 
srujanjawaji profile image
srujanjawaji

I saw the comment, but was a bit confused when I saw your other post on scaling issues with Serverless & mongoDB, where you had taken care of re-using the connection in the code & in this article there is no caching related code. So how is it cached without any explicit code? does the mongoose.connect take care of not creating a new connection when there is an open connection?