locoboy
locoboy

Reputation: 38900

Do I run a background job for this?

Hi I send out an email every time that someone follows another person in my web app. This significantly slows response time down because the ajax isn't rendered until the email is sent through the mailer. Is this a case where I use a background job? I'm unfamiliar with the use case for background jobs and am wondering, if this is the scenario to use it in, where to start.

Upvotes: 1

Views: 74

Answers (1)

Thilo
Thilo

Reputation: 17735

That's a perfect scenario for background jobs. Some general gems for background jobs would be

More options in this question: How to implement a mailing system with Rails that sends emails in the background

Upvotes: 2

Related Questions