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 回答
0

The second option would be best.

AWS
vtjean
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则