vzctl / RationalReads

5 stars 1 forks source link

Background processing. #25

Open Amit-P-Amin opened 9 years ago

Amit-P-Amin commented 9 years ago

Instead of sending e-mails inline, add e-mails to queue and create background job to process queue

nevinera commented 9 years ago

If you want this to be free (or nearly free) on heroku, you'll need to have a scheduled hourly 'send all the emails' task instead of a background job queue. When you get to the point where you need a real background job queue, I recommend switching to digital ocean or something; I can get you set up in about an hour, I've done a lot of ops lately.

The other choice that might work for you is called Sucker Punch. I think this might allow you to get by with background jobs but without paying for another dyno. I haven't used it, and don't actually know how heroku handles process forking on a dyno though.

Amit-P-Amin commented 9 years ago

Hah - that's such an obvious implementation (having an hourly task). I'm not sure why that didn't occur to me. Thanks for the offer! Hopefully RationalReads will get used enough that I'll take you up on your offer.