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
posta 5 mesi fa146 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 5 mesi fa
  • 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?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande