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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠