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
preguntada hace 10 meses218 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 10 meses
  • 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?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas