PEP 594 cgi & cgitb removal
Roel Schroeven
roel at roelschroeven.net
Sat May 25 17:45:06 EDT 2019
Jon Ribbens via Python-list schreef op 25/05/2019 om 21:00:
> On 2019-05-25, Michael Torrie <torriem at gmail.com> wrote:
>> On 05/24/2019 04:27 AM, Jon Ribbens via Python-list wrote:
>>> Sorry, in what sense do you mean "Serverless is CGI"?
>>>
>>> As far as I can tell, it's just a script to automatically upload
>>> bits of code into various cloud providers, none of which use CGI.
>>
>> Not really. Serverless just means stateless web-based remote procedure
>> calls. This is by definition what CGI is.
>
> No, it isn't. CGI is a specific API and method of calling a program
> in order to serve a web request. It isn't a shorthand for "any
> web-based remote procedure call".
More specifically, with CGI the webserver starts a new process for every
single request. That's bad enough for a light C program, but it's
certainly not a good idea to start a whole new Python process for every
request. At least not for any production website or web service that
serves any real amount of traffic.
That is, for those who didn't know, the reason why CGI fell out of use
quite some time ago.
--
"Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger."
-- Franklin P. Jones
Roel Schroeven
More information about the Python-list
mailing list