9

What is WSGI and CGI in plain English?

 3 years ago
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?

advertisements

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?

Today, I read some articles about Covariance, Contravariance (and Invariance) in Java. I read the English and German wikipedia article, and some other blog posts and articles from IBM. But I'm still a little bit confused on what these exactly are abo

What is a singleton, in plain English?

I've been Googling for about and hour now and I still don't have a clear idea of that a singleton is. Can anyone make it a bit more clear to me and perhaps post a code example? All I know if that you can only have one instance of a given class. But c

What are the differences between mod_php and cgi php script?

What are the differences between mod_php and cgi php script? I mean, why it's better (is it?) to use mod_php instead simple php scripts, running them as CGIs? ThanksWhen using CGI : a PHP process is launched by Apache, and it is that PHP process that

VBA What does Cbool mean? (In ACTUAL English)

I can't seem to understand the second line: If Not CBool(GetKeyState(vbKeyRButton) And &H8000) Would you be kind and please explain what this is saying in plain English? All I can understand from this is "If not" and "And" I have s

CGI.unescape and CGI.unescapeHTML do nothing

This question already has an answer here: raw vs. html_safe vs. h to unescape html 5 answers I have a string that I receive as a response to a get request {"revision"=>"r2407", "full_version"=>"2.5 [r2407]", &

What is SALT and how to use it?

I have been searching around and I am still unsure of what a "salt" is and how to use/implement it. Sorry for the noobish question, I am self learning php.I am definitely not an expert, but the really short answer is that "salting" a l

What is key and secret in oith python

I am very new to python (just know the syntax) and oauth (from Wiki page). I want to get oauth token from linkedin and then use it for further API calls. I went through http://developer.linkedin.com/documents/getting-oauth-token-python but did not un

Scala flatMap, what is ms and e?

I'm learning Scala and in the below code using flatMap (taken from 99 Scala problems) I have def myflatten(somelist : List[Any]): List[Any] = somelist flatMap { case ms: List[_] => flatten(ms) case e => List(e) } Now Im totally confused what the 'ms

In Tomcat, what is catalina_home and why we use it?

Iam new to tomcat but i knew something in java, While setting up tomcat we use to set java_home for the jdk path but all i wanted to knew what is catalina_home and why we need to setup in catalina.sh?Tomcat is actually composed of a number of compone

What is StringCbprintf and how is it different from General Sprint?

I am going through a previously written code and I found StringCbPrintf() function I found declaration on msdn site like this : HRESULT StringCbPrintf( _Out_ LPTSTR pszDest, _In_ size_t cbDest, _In_ LPCTSTR pszFormat, _In_ ... ); What is _in_ and _ou

What is *: before and *: after doing in css

I researched on SO about *(Asterisk) and I have found that it selects all elements and applies styles to them. I followed this link, Use of Asterisk and I noticed that this code will apply border to all of the elements. * { border: 1px solid red; } N

What is expansion and how do we use it?

A friend from college is studing web programming using the tapestry framework, and he asked me if could i help him with his homework. One of the questions in the homework says: What is expansion, and how do we use it? Its the first time hear about it

What is faster and less memory intensive in Java: int [] or boolean []?

In Java, what is faster and less in memory: int[n] or boolean[n] or maybe Bitset(n) ? The question is applicable for arrays of small (n is up to 1000), medium (n is between 1000 and 100000) and huge (n is greater than 100000) sizes. Thank you. I want

What is @permalink and get_absolute_url in Django?

What is @permalink and get_absolute_url in Django? When and why to use it? Please a very simple example (a real practical example). Thanks@permalink is a python decorator, while get_absolute_url is a method on a django model. Both are concerned with

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK