Wesley Lamb
2006-Jul-18 16:36 UTC
[Rails] Replace Pound/Pens/Balance with Ruby alternative
Right now you can use either Pens/Balance/Pound to put in front of some Mongrels and it works really good (easy to setup too!). I got to thinking, would it be possible to mimic what Pens/Balance/Pound does in pure Ruby (yeah, I know the answer is yes)? I guess I''m looking for a starting point. Does one simply write an HTTP listener that then redirects the calls to Mongrel? Is there a project already doing this? Thanks for the help. -- Posted via http://www.ruby-forum.com/.
Tom Mornini
2006-Jul-18 17:34 UTC
[Rails] Replace Pound/Pens/Balance with Ruby alternative
Why would you want to rewrite a mature, debugged, efficient C program in Ruby? I understand the benefits (Ruby accessibility, no additional compilation required, etc.), but can''t see them outweighing the disadvantages (efficiency and maturity). On Jul 18, 2006, at 9:36 AM, Wesley Lamb wrote:> Right now you can use either Pens/Balance/Pound to put in front of > some > Mongrels and it works really good (easy to setup too!). I got to > thinking, would it be possible to mimic what Pens/Balance/Pound > does in > pure Ruby (yeah, I know the answer is yes)? I guess I''m looking for a > starting point. Does one simply write an HTTP listener that then > redirects the calls to Mongrel? Is there a project already doing > this? > > Thanks for the help. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Wesley Lamb
2006-Jul-18 17:50 UTC
[Rails] Re: Replace Pound/Pens/Balance with Ruby alternative
Tom Mornini wrote:> I understand the benefits (Ruby accessibility, no > additional compilation required, etc.), but can''t > see them outweighing the disadvantages (efficiency > and maturity).Pound/Pen/Balance doesn''t work on Windows. Yes, there are alternatives, but I''d like to have a simple way of deploying my apps to ANY platform without much fuss. Speed/Efficiency mean nothing to me as my apps are internal to a company and used by less than 50 people througout the day. -- Posted via http://www.ruby-forum.com/.
Ezra Zygmuntowicz
2006-Jul-18 17:57 UTC
[Rails] Re: Replace Pound/Pens/Balance with Ruby alternative
On Jul 18, 2006, at 10:50 AM, Wesley Lamb wrote:> Tom Mornini wrote: >> I understand the benefits (Ruby accessibility, no >> additional compilation required, etc.), but can''t >> see them outweighing the disadvantages (efficiency >> and maturity). > > Pound/Pen/Balance doesn''t work on Windows. Yes, there are > alternatives, > but I''d like to have a simple way of deploying my apps to ANY platform > without much fuss. Speed/Efficiency mean nothing to me as my apps are > internal to a company and used by less than 50 people througout the > day. >Actually there is a binary pen.exe that works on windows. I am using it here for a way to do simple mongrel clusters on windows. http://siag.nu/pub/pen/pen.exe -Ezra
Wesley Lamb
2006-Jul-18 18:38 UTC
[Rails] Re: Replace Pound/Pens/Balance with Ruby alternative
Wesley Lamb wrote:> would it be possible to mimic what Pens/Balance/Pound does in > pure Ruby (yeah, I know the answer is yes)? I guess I''m looking for a > starting point. Does one simply write an HTTP listener that then > redirects the calls to Mongrel? Is there a project already doing this?Ok, back to my original question...please. I don''t want to use Pen/Balance/Pound/Apache/Lighttpd/Litespeed, etc. etc. at the moment. I''d really just like to know if a pure Ruby app for this exists and if not where I should start to write my own. (ie: Take a look at Module XYZ and Project ABC, etc.) Thanks. -- Posted via http://www.ruby-forum.com/.
Josh Knowles
2006-Jul-18 23:13 UTC
[Rails] Re: Replace Pound/Pens/Balance with Ruby alternative
On 7/18/06, Wesley Lamb <wes.lamb@gmail.com> wrote:> > Speed/Efficiency mean nothing to me as my apps are > internal to a company and used by less than 50 people througout the day.If Speed/Efficiency doesn''t matter then why even bother with Mongrel. Webrick running in production mode does everything you need it to do and is a purely ruby based solution. Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060718/83118a6b/attachment.html
Zed Shaw
2006-Jul-19 06:15 UTC
[Rails] Re: Replace Pound/Pens/Balance with Ruby alternative
On Tue, 2006-07-18 at 20:38 +0200, Wesley Lamb wrote:> Wesley Lamb wrote: > > would it be possible to mimic what Pens/Balance/Pound does in > > pure Ruby (yeah, I know the answer is yes)? I guess I''m looking for a > > starting point. Does one simply write an HTTP listener that then > > redirects the calls to Mongrel? Is there a project already doing this? > > > Ok, back to my original question...please. I don''t want to use > Pen/Balance/Pound/Apache/Lighttpd/Litespeed, etc. etc. at the moment. > I''d really just like to know if a pure Ruby app for this exists and if > not where I should start to write my own. (ie: Take a look at Module > XYZ and Project ABC, etc.)Well, you have all the tools available. Mongrel is a web server that answers requests. Net/http in ruby does requests. After a bit of work you could probably easily write something. It wouldn''t super duper fast but it''s possible. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?