For people who like simplicity, and server- and language-agnosticism, what is your preferred protocol for interfacing your web apps with a web server? CGI, SCGI, FastCGI, or something else?
I don't really care all that much. If i had the choice i'd probably go for FastCGI as that's what i have to most experience with and where i can be sure it'll at least cover my basic needs. The only drawback i've discovered over the years (at least in relation to nginx) is the inability to access partial request bodies or chunked uploads in real time. I figure at least CGI wouldn't have this problem but then CGI is vastly inferior when it comes to huge loads i guess so i doubt there is an ideal solution for every use case.
>>1
HTTP reverse proxy, there is no need to convert formats.
The only drawback i've discovered over the years (at least in relation to nginx) is the inability to access partial request bodies or chunked uploads in real time.
Is this because nginx doesn't support FastCGI multiplexing (which is an optional part of the FastCGI specification)?
>>4
Good question. I have to admit that i didn't investigate it all that much. I any case there doesn't seem to be a way to control this behavior. The other way around sending a X-Accel-Buffering: no header disables any buffering but from what i read even setting request buffers to zero will just result in nginx buffering to disk instead. Not that would it be overly helpful anyways as users often times don't have access to the actual server configuration.
>>3
No seriously. Why wouldn't you use a reverse HTTP proxy and an embedded HTTP server?
>>3 has it right. Fastcgi is just faggotry.
I feel like CGI comes from the same hellhole as XML -- trying to be the one-size-fits-all standard, but ending up bloated and used only by children of the 60's
CGI is the UNIX philosophy and therefore good.
bad
>>8
How is CGI "bloated"? CGI receives a request from standard input and returns a response through standard output. What could be simpler than that? CGI is language agnostic and works the UNIX way.
>>11 You forgot environment variables.
please dont be mean... xml is cute and nice
Xml is lithp like, schemebbs would shill xml under normal circumstances.
in a good world, without naughty people, cgi would be enough
if you use other farcical protocols, you accept the evil of this world
hear the words of OUR LORD JESUS CHRIST
do not resist evil, do not use fake-cgi