How to effectively send batch emails?

0

I have a node application to provide surveys, and I need to send emails to the participants to the surveys (one to notify them they have to respond to the questionaire, and another one to notify those who hadn't do that yet to do it, before the survey ends), and I need to schedule when to send them out. Email addresses, email messages to use and date when to send those emails are on DocumentDB.

I am not sure how should I architect all this. A few ideas:

  • Eventbridge triggers a lambda function every day. Lamba checks documentDB, gets the emails, create the messages and send them. It could work but the function will run until the last message is sent.
  • Eventbridge triggers a lambda function every day. Lamba checks documentDB, gets the emails, create the messages and push them in a queue. The queue triggers another Lambda to send the single email out.
  • Eventbridge triggers a lambda function every day. Lamba checks documentDB, gets the emails, create the messages and push them in a queue. Then, can I send them without passing for a lambda function?

any other idea/option? many thanks M

1 Answer
0

The second option would be best.

AWS
vtjean
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions