lale-help / lale-help

A collaborative platform for volunteer refugee support.

Home Page:http://lale.help

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spike: Email invites for large project potentially causing performance issues

dottorer opened this issue · comments

image

For a project email invite through Mandrill, we might encounter a severe performance degradation when the target email audience is large. This happened in PROD for a group of roughly 60 helpers that were invited to a project.

@phillipoertel Do you think this could be a recurring pattern for Mandrill calls? The Rails app failed when the Mandrill service took too long, but the email were in the end sent (in Mandrill logs).

It would be best to always send the invitations asynchronously. Maybe Mandrill supports that out of the box; if not, use a queue system like delayed_job or sidekiq. Both can be used through Rails' ActiveJob interface, IIRC.

Closing based on @phillipoertel's research of options with decision to implement sidekiq worker process for delayed email delivery. See implementation in #449.