[Rails] Re: Re: script/server lighttpd on Windows

Justin Forder
Wed, 26 Apr 2006 20:29:50 -0000

Alex Wayne wrote:
>> I''m curious.  What''s your reason for wanting to use
lighty for
>> development?
>
> Well not specifically lighty I guess, just something faster than
> webrick.  And not only is webrick slow but single threaded, and my app
> has a few long running actions that report their progress via ajax
> calls.  The problem is that since Webrick is single threaded it cant
> process the ajax calls while the long running action is working.
> Currently I actually have to upload it the server in order to test it,
> causing unnecesary svn commits.
>
> I''ll see if mongrel can tickle my fancy.

WEBrick itself isn''t single threaded (and I''m not sure that
it''s slow,
either). Running Rails under WEBrick is single threaded, and the same is
true of running Rails under Mongrel. To get concurrency you need
multiple server processes - whether FastCGI, SCGI, or Mongrel - running
behind Apache, lighty, or something else.

regards

   Justin