Best practices for running Perl?

Gabriel Ramuglia gabe at vtunnel.com
Fri May 1 00:22:24 MSD 2009


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 <maiken at 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?
>
> Thanks!
>
> Mark
>
> On Thu, Apr 30, 2009 at 12:08 PM, Gabriel Ramuglia <gabe at 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
>> <cortese.consulting at gmail.com> wrote:
>>> in reading more closely, scratch Ruby... but I still would consider PHP
>>> before Perl...
>>>
>>> Chris Cortese wrote:
>>>>
>>>> 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,
>>>>>
>>>>> Mark
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
>





More information about the nginx mailing list