[ prog / sol / mona ]

prog


CGI, SCGI, FastCGI

1 2021-10-26 03:54

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?

2 2021-10-26 11:48

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.

3 2021-10-26 13:38

>>1
HTTP reverse proxy, there is no need to convert formats.

4 2021-10-26 14:54

>>2

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)?

5 2021-10-26 17:48

>>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.

6 2021-10-26 23:47

>>3
No seriously. Why wouldn't you use a reverse HTTP proxy and an embedded HTTP server?

7 2021-10-27 17:39

>>3 has it right. Fastcgi is just faggotry.

8 2021-12-28 00:59 *

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

9 2022-01-06 05:35

CGI is the UNIX philosophy and therefore good.

10 2022-01-07 23:06

bad

11 2022-01-08 07:56

>>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.

12 2022-01-08 12:08

>>11 You forgot environment variables.

13 2022-01-11 06:20

please dont be mean... xml is cute and nice

14 2022-01-11 14:24 *

Xml is lithp like, schemebbs would shill xml under normal circumstances.

15 2022-02-06 13:06

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

16


VIP:

do not edit these