Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intelligent email bounce alarm #5

Closed
r00dgirl opened this issue Aug 3, 2020 · 0 comments · Fixed by #131
Closed

Intelligent email bounce alarm #5

r00dgirl opened this issue Aug 3, 2020 · 0 comments · Fixed by #131
Assignees
Labels
P2 planned for next 1-2 months

Comments

@r00dgirl
Copy link
Contributor

r00dgirl commented Aug 3, 2020

Create a new bounces collection where each document has a 48hr TTL and has the following fields:

  • formId: ObjectId
  • hasAlarmed: boolean: whether an alarm has been sent
  • bounces: Array<{ emailAddress: string, hasBounced: boolean }>: whether an email has bounced.

When we receive a bounce notification via webhook notifications, retrieve the document by finding the correct form ID. For each email in the list of bounced emails, set the corresponding hasBounced to true. If all the hasBounced are true and hasAlarmed is false, send an alarm write a log message and set hasAlarmed to true. CloudWatch should monitor the log message and trigger an alert if necessary

If the list of email recipients is different from the bounces array, update the bounces array.

If an email was successfully received, set hasBounced to false for the corresponding email.

@r00dgirl r00dgirl added the P2 planned for next 1-2 months label Aug 3, 2020
@liangyuanruo liangyuanruo changed the title Rewrite bounce alarm Intelligent email bounce alarm Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 planned for next 1-2 months
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants