Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

。_饼干妹妹 提交于 2019-11-27 05:59:35
pyfunc

A part answer to your question, including scgi.

CGI vs FCGI

Lazy and not writing it on my own. From the wikipedia: http://en.wikipedia.org/wiki/FastCGI

Instead of creating a new process for each request, FastCGI uses persistent processes to handle such requests. Multiple processes can configured, increasing stability and scalability. Each individual FastCGI process can handle many requests over its lifetime, thereby avoiding the overhead of per-request process creation and termination

Richard Boardman

There's also a good background reader on CGI, WSGI and other options, in the form of an official python HOWTO: http://docs.python.org/2/howto/webservers.html

Cees Timmerman

In a project like Django, you can use a WSGI (Web Server Gateway Interface) server from the Flup module.

A WSGI server wraps a back-end process using one or more protocols:

  • FastCGI is a kind of CGI which is long-live, which will always be running.
  • With FastCGI, it'll take less time.
  • Because of multi-processes, FastCGI will cost more memory than CGI.

In Detail Diff between FastCGI vs CGI

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!