atom feed20 messages in ru.sysoev.nginxRe: Best practices for running Perl?
FromSent OnAttachments
Mark AikenApr 30, 2009 11:46 am 
Chris CorteseApr 30, 2009 11:51 am 
Chris CorteseApr 30, 2009 11:53 am 
Mark AikenApr 30, 2009 12:05 pm 
Gabriel RamugliaApr 30, 2009 12:08 pm 
Mark AikenApr 30, 2009 12:37 pm 
Michael ShadleApr 30, 2009 1:04 pm 
Maxim DouninApr 30, 2009 1:08 pm 
Jim OhlsteinApr 30, 2009 1:14 pm 
Mark AikenApr 30, 2009 1:20 pm 
Gabriel RamugliaApr 30, 2009 1:22 pm 
Jonathan VanascoApr 30, 2009 1:48 pm 
Chris CorteseApr 30, 2009 2:00 pm 
luben karavelovMay 1, 2009 5:25 pm 
luben karavelovMay 1, 2009 5:43 pm 
Michael ShadleMay 1, 2009 6:16 pm 
luben karavelovMay 1, 2009 7:10 pm 
Michael ShadleMay 1, 2009 8:51 pm 
luben karavelovMay 2, 2009 7:40 am 
luben karavelovMay 2, 2009 7:48 am 
Subject:Re: Best practices for running Perl?
From:Gabriel Ramuglia (ga@vtunnel.com)
Date:Apr 30, 2009 1:22:01 pm
List:ru.sysoev.nginx

from the docs on the built in module, it seems to run inline with nginx, so, any large or blocking operations would be a very bad idea. they say that the module is highly experimental and that bugs are likely, as well as nginx supposedly will "laugh at your code and hit on your girlfriend". Basically, you shouldn't run a typical program inside the module, maybe a small snippet of code, but nothing that does very much. I think it's designed so you can easily write plugins to modify nginx behaviour, rather than as a replacement for a cgi or fastcgi situation.

On Thu, Apr 30, 2009 at 12:38 PM, Mark Aiken <mai@niftybrick.com> wrote:

Let me ask a more focused question, since we don't really need to use the nginx list to debate web languages.

 1 - Is the nginx built-in Perl module ready for production use? Has anyone here used it in a production environment?  2 - If not, what is the current best practice for running Perl behind nginx in production?  3 - What is the current best practice for running PHP behind nginx in production? Is this better than the answer for Perl?

On Thu, Apr 30, 2009 at 12:08 PM, Gabriel Ramuglia <ga@vtunnel.com> wrote:

I would consider php more lightweight than perl in general, even though perl is a good option for various logfile and other text-processing related tasks

On Thu, Apr 30, 2009 at 11:54 AM, Chris Cortese <cort@gmail.com> wrote:

in reading more closely, scratch Ruby... but I still would consider PHP before Perl...

IMHO starting with Perl...  and nginx...  you are putting a dinosaur in a cage with a racecar.  maybe at least PHP, or, depending on the project, some people like Ruby or Python...

Mark Aiken wrote:

Hello,

My apologies for the newbie question; I have poked around quite a bit and can't find a definitive answer.

I'm planning to use nginx to set up a lightweight server on a slim virtual-slice host where resources are at a premium. The server will mainly just relay data from clients to back-end systems, so I don't need a fancy render layer or persistence model. I'm planning to go with Perl for its stability and light footprint.

My question is, what is the current best-practice for running Perl behind nginx? Is the built-in Perl module stable enough to consider using in production or should I stick with a hand-rolled FCGI wrapper?

If someone feels that there would be a better slim-language choice that is better supported by nginx instead of Perl, I would appreciate hearing about that as an alternative.

Cheers,