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 Antwort
0

The second option would be best.

AWS
vtjean
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen