Which serverless service to use for Running Middlewares for MongoDB Atlas and AWS S3?

0

I've created a mobile app which consists of forms, these forms store the text data in MongoDB Atlas and the images in AWS S3, the MongoDB Atlas is a serverless service, but I'm needing a middleware to communicate with it. The AWS S3 is also setup like this. Currently I'm running this middleware servers on my local machine(Local Host), but I need a serverless service for these two node servers to run 24/7, but I want to only pay for the time that I use these. Please help me Guys, I'm a beginner.

Robert
demandé il y a 5 mois145 vues
1 réponse
0

Hi,

If you want pay only for invocation Lambda is the best choice for you. Even though it's possible now to have public URL for your Lambda it's better to hide them behind the API gateway, which will do authentication as well. You can start from here.

profile picture
EXPERT
répondu il y a 5 mois
  • If I invoke the function, how long will it run?, since currently I'm running it on my local machine I'm running it continuously. Can I do something like this. 1 - Invoking it through a http request. 2 - The function only runs till I upload the images and immediately stops after upload is complete(S3 Uploading Middleware). 3 - The function only runs till I submit the text data to MongoDB Atlas and immediately stops after submission is complete(MongoDB Atlas Middleware). Will this be possible?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions