From: andrew mcelroy Date: 2012-05-23T18:46:48+09:00 Subject: Re: Ruby through CGI and Rails --f46d043c80606cdff604c0b103fd Content-Type: text/plain; charset=ISO-8859-1 On Wed, May 23, 2012 at 4:36 AM, Brian Candler wrote: > Shaun Lloyd wrote in post #1061602: > > On 22/05/12 03:37, Brian Candler wrote: > >>> understand the security implications of having your own process! > >> The cost of starting a Rails app is huge - several seconds of startup > >> time. You really really don't want to do this from scratch on every > >> request. > >> > > It's a real huge. I did tests locally, cross country and cross > > continent. > > I love ruby and rails but honest ruby on rails has very serious > > performance issues. > > That just means you're using it wrong. Rails was *never* intended to be > run as a CGI, it's just a ridiculuous thing to do. Run Rails as a > persistent webserver and proxy to it; or run it under Apache using > Phusion Passenger, which will also run any other Rack-based application. > At the end of the day, look at what rack is using. CGI. It is a realization that really threw me for a loop for a while. Andrew McElroy > Regards, > > Brian. > > -- > Posted via http://www.ruby-forum.com/. > > --f46d043c80606cdff604c0b103fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, May 23, 2012 at 4:36 AM, Brian C= andler <lists@ruby-forum.com> wrote:
Shaun Lloyd wrote in post #1061602:
> On 22/05/12 03:37, Brian Candler wrote:
>>> understand the security implications o= f having your own process!
>> The cost of starting a Rails app is huge - several seconds of star= tup
>> time. You really really don't want to do this from scratch on = every
>> request.
>>
> It's a real huge. I did tests locally, cross country and cross
> continent.
> I love ruby and rails but honest ruby on rails has very serious
> performance issues.

That just means you're using it wrong. Rails was *never* intended= to be
run as a CGI, it's just a ridiculuous thing to do. Run Rails as a
persistent webserver and proxy to it; or run it under Apache using
Phusion Passenger, which will also run any other Rack-based application.

At the end of the day, look at what rack = is using. CGI. It is a realization
that really threw me for a loo= p for a while.=A0

Andrew McElroy
=A0
Regards,

Brian.

--f46d043c80606cdff604c0b103fd--