-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use SMTP pool to send emails #12
Comments
## Description This PR adds this project to the join page: WATonomous/terraform-provider-email#12 ## Checklist - [x] I have read and understood the [WATcloud Guidelines](https://cloud.watonomous.ca/docs/community-docs/watcloud/guidelines) - [x] I have performed a self-review of my code
https://github.com/knadh/smtppool may be a useful project. |
There appears to be a new object-oriented way to define resources: https://developer.hashicorp.com/terraform/tutorials/providers-plugin-framework/providers-plugin-framework-resource-create This makes it easy to persist an SMTP client for use multiple times. |
The We might need to manage concurrency so that smtp messages don't send interleaved. |
Today, we were sending 558 emails at the same time after introducing the "active terms" feature. SMTP started throwing this error:
Only 188 out of 558 emails were sent in the first round. In the second round, slightly over 100 emails were sent.
It turns out we are creating a new SMTP connection for every email, which is not desirable:
https://stackoverflow.com/a/54299705/4527337
This ticket tracks using an SMTP pool to send emails.
The text was updated successfully, but these errors were encountered: