I''m working on an application that requires a process to send/receive SMS messages (via email for now) outside of Rails. Right now I have it working using the ActionMailer and ActiveRecord objects in my Rails application. Is it better (quicker, more scalable) to read/write to the database and send/receive outside of the ActiveRecord and ActionMailer models I have setup in rails? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mark wrote:> I''m working on an application that requires a process to send/receive > SMS messages (via email for now) outside of Rails. Right now I have > it working using the ActionMailer and ActiveRecord objects in my Rails > application. > > Is it better (quicker, more scalable) to read/write to the database > and send/receive outside of the ActiveRecord and ActionMailer models I > have setup in rails?Yes, you can make more scalable solutions outside of Rails. But... Is the current solution not working? Are you having performance issues? If not, why bother? -- Cheers, - Jacob Atzen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
mark-h9LRGznmPqMAvxtiuMwx3w@public.gmane.org
2007-Jul-19 12:21 UTC
Re: Email outside of Rails
Yep, it absolutely works, at least on my dev box. I''ll have to go back and check but I thought the BillMonk guys mentioned something about building that part outside of Rails for performance reasons. I thought I would bring it up now while I''m still early enough into the project. ----- Original Message ---- From: Jacob Atzen <jacob-4U2y0bnePT5NzRJJ8cAMrg@public.gmane.org> To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sent: Thursday, July 19, 2007 6:00:39 AM Subject: [Rails] Re: Email outside of Rails Mark wrote:> I''m working on an application that requires a process to send/receive > SMS messages (via email for now) outside of Rails. Right now I have > it working using the ActionMailer and ActiveRecord objects in my Rails > application. > > Is it better (quicker, more scalable) to read/write to the database > and send/receive outside of the ActiveRecord and ActionMailer models I > have setup in rails?Yes, you can make more scalable solutions outside of Rails. But... Is the current solution not working? Are you having performance issues? If not, why bother? -- Cheers, - Jacob Atzen --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
mark-h9LRGznmPqMAvxtiuMwx3w@public.gmane.org wrote:> Yep, it absolutely works, at least on my dev box. > > I''ll have to go back and check but I thought the BillMonk guys mentioned > something about building that part outside of Rails for performance > reasons.You can replace any part of Rails for performance reasons. Rails is not built to be the highest performing solution on the market. The question is if you want to spend your time doing optimization or features. Personally I prefer features until a need for optimization shows up.> I thought I would bring it up now while I''m still early enough into the > project.Well, if you''re going to be handling big amounts of mail it might be worth going outside of Rails. Try doing some benchmarks and see what you get. Or it might be worth just getting more hardware. In the end you should do what you think is right :) -- Cheers, - Jacob Atzen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---