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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ