Hi everyone, I seem to be having some trouble re-u...
# help
p
Hi everyone, I seem to be having some trouble re-using MongoDB Atlas connections in repeated calls to lambdas built using Serverless Stack. Has anyone else had this issue?
m
Hi, I used mongo Atlas, without any issues. Can you help me re-create the scenario? I am sharing my code, I have used a mongo connection and cached it. Let me know if this works for you.
f
@Jay Can we take a look at the code and put together an example with MongoDB?
j
Yup, I’ll take a look.
p
From what it seems, the deployed APIs reuse connections fine
Just the hot reloading
j
@Pranav Tadikonda Is it causing errors when you are testing locally? SST runs a separate Node.js process per invocation. So I can see the caching approach from the code sample above might not work. But let me know whats going on and we’ll look into fixing it.