Skip to content

thailehuy/mailluloid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mailluloid

Async mailer without any painful setup

https://github.com/thailehuy/mailluloid

Inspired by one of the gem I saw in the last conference: Celluloid, I made the gem Mailluloid (Mail + Celluloid)

In your Gemfile, include the gem

gem 'mailluloid'

How to use:

  1. Install the gem
  2. ???
  3. Profit!

Then use your mailer as normal. Mailluloid will push all mail sending to background thread, and terminate them after done, so no memory leaks. You now have a non-blocking mailer.

This is useful if you wanna run mailer on Heroku but do not want to pay for a worker just to deliver mail. No more Resque mailer, no more Sidekiq painful setup

Caveats:

  1. All mailers exception are in the child thread, so you can't handle them. (but since you are using a background process for mailer, who care?)
  2. Only works with ActionMailer

About

A celluloid'd mailer wrapper for action mailer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages