[Xitami] Xitami/5 - new project announcement
Maurilio Longo
maurilio.longo at libero.it
Fri Jan 9 09:18:02 CET 2009
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.
More information about the Xitami
mailing list