Guidance on sending emails to many subusers (100+) #623
Labels
status: help wanted
requesting help from the community
type: community enhancement
feature request not on Twilio's roadmap
Issue Summary
I'm trying to use this library to send emails on behalf of many subusers - in the hundreds, if not thousands. It appears that the primary pattern is to use
new Sendgrid(apiKey)
in order to send - but that creates a FixedThreadPool with 8 threads. If I wish to send emails to even 10 subusers, this means I'll have 10 FixedThreadPools with 8 threads each - not desirable.Is there any guidance on how to appropriately use this library for the above use-case? It looks like we could implemented
SendgridAPI
, but I'm hoping to avoid that if possible.I'd use
on-behalf-of
, but that is not supported formail.send
.Technical details:
The text was updated successfully, but these errors were encountered: