By which you mean, "Almost every website in the Universe which isn't actively being DDoSed" with the understanding that essentially nobody can stand up to a modern, competent DDoS.
> Per Murphy's Law, of course, everything is fine until one day the internal app goes public and suddenly there are 500 queries a second.
Omae wa mou shindeiru. You are already dead.
And for the most part, CGI went on the decline the day mod_perl came out. Which was 1996. So we really didn't use basic CGI for that long. The popularity of putting Perl right in Apache eclipsed running standalone Perl via CGI. It would be at least another decade before the world started to move on from this arrangement (mod_php or mod_perl).
Each CGI request has to create a new process, that can easily mean entire seconds of CPU per request.
A few sensors sending information from time to time will quickly turn into a massive resource hog. Having used CGI extensively, one of the biggest caveats is resource exhaustion and the ensuing DDoS.
There are situations like that.
I have seen CGIs where usage started very slow and then gre t the point of friendly DDoS, and it's not fun because the CGI is usually built deep into the architecture by that point.
Also some sensors read very fast, like in Linux "sensors -f" returns the CPU temperatures.
not
came to mine
Especially when there won't framework already in use on this particular server.
Why add <framework of the day> to your setup when every 10 minutes or so, it's time to read the temperature sensor and return a string with the reading.
Also, since it's served by a transient process, there is no problem of memory leaks, file handle leaks, other resource capture by long running processes.
Per Murphy's Law, of course, everything is fine until one day the internal app goes public and suddenly there are 500 queries a second.