[Xitami] Xitami/5 - new project announcement
Pieter Hintjens
ph at imatix.com
Fri Jan 9 19:28:00 CET 2009
There's a good description of LRWP here:
http://legacy.imatix.com/html/xitami/index12.htm
(I earlier said Ewen McNeill had written this but in fact it was Robin Dunn.)
On Fri, Jan 9, 2009 at 7:10 PM, Russel Olinger <rolinger1 at hotmail.com> wrote:
> I am curious - as I am not to familiar with LRWP - your description below
> gives me pause. Does that mean that on a busy server every time a new URL
> is executed that a new 'instance' will be held in memory? I completely
> understand the speed related to separate processes remaining in memory allow
> the next instance of that same url to run lightning fast - but how much
> memory is eaten up keeping these processes alive - and how does that affect
> over all system performance? What if too many are held in memory - how does
> it manage new calls if memory is too full?
>
> Thanks
> -R
>
> Russel P. Olinger (310) 466-3399 rolinger1 at hotmail.com
>
>
>
>> Date: Fri, 9 Jan 2009 09:18:02 +0100
>> From: maurilio.longo at libero.it
>> To: xitami at lists.xitami.org
>> Subject: Re: [Xitami] Xitami/5 - new project announcement
>>
>> Pieter,
>>
>> LRWP has, if I'm not wrong, another advantage over fast-cgi and this is
>> the
>> ability for a LRWP process to register itself with the web-server for a
>> particular URL so that it handles always that URL.
>>
>> I mean, I use LRWP for .prg files (script files with a xbase dialect
>> inside),
>> I have xitami configured to execute a cgi-bin program when an URL contains
>> .prg, when the user asks for that URL xitami executes my cgi-bin program
>> passing to it the required URL, my program executes the script (to answer
>> the
>> request) but, before ending, it starts an istance of itself which
>> registers
>> back with xitami for the same url. From now on all requests for that URL
>> will
>> be handled by this instance of the cgi-bin executable (and this kind of
>> 'routing' of requests is handled by xitami itself).
>>
>> In this way every URL/page/frame/etc. which is handled by a .prg files has
>> its
>> instance of the interpreter running (after the first request), this makes
>> the
>> site very robust, a problem on a page does not affect the entire site, and
>> fast, since the script (.prg file) gets evaluated (compiled on the fly)
>> only
>> once (up until a certain idle time, when the LRWP process shuts itself
>> down).
>>
>> Best regards.
>>
>> Maurilio.
>>
>> Pieter Hintjens wrote:
>> > On Thu, Jan 8, 2009 at 2:27 PM, Hogan Courrier <hogan at geeksgalore.ca>
>> > wrote:
>> >
>> >> Just curious what one would use LRWP for? Does not PHP cover that?
>> >>> LRWP are a must :) for me as well.
>> >
>> > LRWP works with any language (there are examples in C and Python in
>> > the doc) and gives something that looks a lot like CGI, but is much
>> > faster (processes don't stop and start, so can remain 'hot').
>> >
>> > -Pieter
>> >
>> > --
>> > Xitami Users Mailing List -- For Xitami support
>> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>> >
>>
>> --
>> __________
>> | | | |__| Maurilio Longo
>> |_|_|_|____| farmaconsult s.r.l.
>>
>>
>>
>> --
>> Xitami Users Mailing List -- For Xitami support
>> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
--
"Silence (n.) The sound of something really terrible just about to happen."
-- Devil's Wiki - http://www.devilswiki.com.
More information about the Xitami
mailing list