For certain tasks, it’s better to use a job queue rather than holding up the web server API process. Sending e-mails is a perfect task that can be put off momentarily for another process to pick up and finish.