News for hackers. Stuff that matters.
Re:Show HN: Neh – Execute any script or program from Nginx l... by westurner on Tuesday March 24, 2020 @05:10AM (#22673212)
Nginx probably somewhat-deliberately has FastCGI but not regular CGI for a number of reasons.

CGI has process-per-request overhead.

CGI typically runs processes as the user the webserver is running as; said processes can generally read and write to the unsandboxed address space of the calling process (such as x.509 private certs).

Just about any app can be (D)DOS'd. That requires less resources with the process-per-request overhead of CGI.

In order to prevent resource exhaustion due to e.g someone benignly hitting reload a bunch of times and thus creating multiple GET requests, applications should enqueue task messages which a limited number of workers retrieve from a (durable) FIFO or priority queue and update the status of.

Websockets may or may not scale better than long-polling for streaming stdout to a client.

Re:Show HN: Neh – Execute any script or program from Nginx l... by oap_bram on Tuesday March 24, 2020 @05:14AM (#22673221)
Interesting and really informative! Thanks for sharing!