Naija Guy
2008-Jul-17 18:32 UTC
better to use ruby to send email instead of rails context?
If my web app needs to send email notifications that are not time sensitive (e.g. they can wait a few minutes), do you think it''s better for my web app to put the message on a queue or in the db for another program (e.g. plain ruby) to load up and send the email? I know I can still send them asynchronously by putting them on a queue and then having a background process load up the rails context to send them, but I don''t know much about this and am wondering if I do that, would it be that much more scalable to just have plain ruby or any other standalone simple custom mailer program written in Java or whatever doing the emailing? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2008-Jul-17 18:53 UTC
Re: better to use ruby to send email instead of rails context?
> If my web app needs to send email notifications that are not time > sensitive (e.g. they can wait a few minutes), do you think it''s better > for my web app to put the message on a queue or in the db for another > program (e.g. plain ruby) to load up and send the email? I know I can > still send them asynchronously by putting them on a queue and then > having a background process load up the rails context to send them, > but > I don''t know much about this and am wondering if I do that, would it > be > that much more scalable to just have plain ruby or any other > standalone > simple custom mailer program written in Java or whatever doing the > emailing?You may want to look at ar_mailer http://blog.segment7.net/articles/2006/08/15/ar_mailer -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---