[REBOL] Re: LRWP for Xitami Using REBOL
From: koopmans::itr::ing::nl at: 18-Oct-2001 13:37
Hi, See below....
> A LRWP process listens on its port and provides
> a response like webserver.r does.
No. Like a CGI program does. You return the content by passing your content
as a string to lrwp/respond
> The documentation reads like the Xitami server will
> manage the scheduling of its LRWProcesses - queue the
> requests until there is a free process, manage the timeout
> when none become available.
>
Yes. Cool huh?
> ---LRWP Location
>
> I think the LRWP processes can be served from any place that
> I wanted to put them - like on another server for that purpose.
>
Yes.
> ---Performance Findings?
>
> Are there any results of the performance of REBOL being
> the LRWPs?
>
No, but... you miss the startup overhead of launching a CGI process.
Provided that you have enough LRWP processes for a certain url
they will act almost as static pages (depending on your logic).
> ---Coming To Terms
>
> I want to try this by putting a dictionary of terms in the LRWP
> script and use REBOL's ability to access and format them for display.
>
> Then hundreds of terms can be included and linked from a single
> dictionary definition such as:
>
> terms: [
>
> LRWP [
> title "Long Running Web Process"
> definition {An Xitami approach similar to Fast CGI that allows}
> usage {Not yet used in this environment.}
> see-also ['cgi]
> ]
>
> CGI [
> title "Common Gateway Interface"
> definition {}
> usage {Suitable for }
> see-also ['lrwp]
> ]
>
> ]
>
> And emitting standardized format HTML after finding a term in that
> dictionary is pretty easy to do.
>
You can download lrwp.r from the script lib, under CGI. The last few
commented lines are a sample. You include lrwp.r in you script and start the
service by using the commented lines.
HTH,
Maarten