Re: [Boa-devel] Dynamic Content
Brought to you by:
jnelson
From: <all...@li...> - 2003-02-04 18:22:29
|
On 2003-02-04 10:43:15, Jon Nelson wrote: > SOAP is expensive. That was my gut feeling as well. > Basically SCGI uses the netstrings specification, as in http://python.ca/nas/scgi/protocol.txt? > which when boiled down means that every "string" is prefixed by its > length, and \0 is the seperator (versus \n, \r\n, \r, tab, and others). Why is the header and body two different such strings? Opposed to one such string per header "line" and one for the body? > Header names are not from a fixed set. Ok. > There are some environment variables that should always be present, > others that are usually present, and yet others that are purely > optional. If you send to a CGI the header "foo: bar" the CGI should > get HTTP_FOO=3Dbar in its environment. All "unrecognized" header values > get prefixed with HTTP_. Ok, I was aware of the how that worked, but not if CGI just lagged behind time. > However the mechanism, it's an unimportant detail really. It's far > easier IMO that the FastCGI spec which is quite a bit more complex. > Furthermore, if I read it properly, I don't think the httpd even needs > to re-parse the output, making SCGI a "smarter" NPH. Lost me there. Unless the httpd already parses things as netstrings it would have to at least generate this special format, no? What about just passing the whole message through, possible decorated with a header containing meta information (ip, server root and maybe even an index to parse the message itself) so you end up doing something like: send(header(request)) send(message) where request is assumed to contain meta information. > Another bonus of SCGI is that the httpd has its choice if reliable > transports (tcp/ip or fifo/socket), thus the SCGI "server" could be on a > different machine than the httpd, the bonus there being able to sustain > far higher load and possibly even load balancing *right at the network > layer*. Yes, I am with totally with you there. /Allan --=20 Allan Wind P.O. Box 2022 Woburn, MA 01888-0022 USA |