Hello Everyone, I was curious if anyone has had ex...
# help
t
Hello Everyone, I was curious if anyone has had experience using sst with hosted mongoDB. I'm curious how some of the outlines in this doc (https://docs.atlas.mongodb.com/best-practices-connecting-to-aws-lambda/) play nicely with the configurations in sst like package individually true and such. Has anyone tried sst + mongo at scale yet?
f
Hey @Tony J how are you deploying ur Lambdas right now?
t
using SAM via AWS cli
sam build && sam deploy
f
I see.. then ur Lambda functions should work as is when deploying using SST
t
Yup yup they do!
f
And if you want to fire up the local environment
sst start
, just make sure u allow ur local IP to access the Atlas
t
Was more so curious on the re-using mongo connections from AWS lambda, because with the package individually flag set to true, it seems like it might not re-use connections across different functions? But I might be wrong
f
yeah.. connections can only be reused between requests to the same Lambda function.
t
kk!
f
if that’s a concern, a workaround might be to have 1 Lambda function handle different requests