What is WSGI and CGI in plain English?
source link: https://www.codesd.com/item/what-is-wsgi-and-cgi-in-plain-english.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
What is WSGI and CGI in plain English?
Every time I read either WSGI or CGI I cringe. I've tried reading on it before but nothing really has stuck.
What is it really in plain English?
Does it just pipe requests to a terminal and redirect the output?
WSGI runs the Python interpreter on web server start, either as part of the web server process (embedded mode) or as a separate process (daemon mode), and loads the script into it. Each request results in a specific function in the script being called, with the request environment passed as arguments to the function.
CGI runs the script as a separate process each request and uses environment variables, stdin, and stdout to "communicate" with it.
Related Articles
Covariance, Invariance and Contravariance explained in plain English?
What is a singleton, in plain English?
What are the differences between mod_php and cgi php script?
VBA What does Cbool mean? (In ACTUAL English)
CGI.unescape and CGI.unescapeHTML do nothing
What is SALT and how to use it?
What is key and secret in oith python
Scala flatMap, what is ms and e?
In Tomcat, what is catalina_home and why we use it?
What is StringCbprintf and how is it different from General Sprint?
What is *: before and *: after doing in css
What is expansion and how do we use it?
What is faster and less memory intensive in Java: int [] or boolean []?
What is @permalink and get_absolute_url in Django?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK