You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With reference to example, I have used in my project. For my project, I am using MongoDb but faces new connection for every time lambda function is invoked. I looked in Mongodb documentation (https://docs.atlas.mongodb.com/best-practices-connecting-from-aws-lambda/) that connection to Mongodb server should be outside lambda function.
Using example provided in documentation how to define client outside lambda function? All of my Database connection and query is above this handler = Mangum(app)
This discussion was converted from issue #226 on January 31, 2022 12:23.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With reference to example, I have used in my project. For my project, I am using MongoDb but faces new connection for every time lambda function is invoked. I looked in Mongodb documentation (https://docs.atlas.mongodb.com/best-practices-connecting-from-aws-lambda/) that connection to Mongodb server should be outside lambda function.
Using example provided in documentation how to define client outside lambda function? All of my Database connection and query is above this
handler = Mangum(app)
Beta Was this translation helpful? Give feedback.
All reactions