# Using FastCGI for python

**URL:** <https://www.ruby-forum.com/t/using-fastcgi-for-python/223250>\
**Category:** NGINX\
**Created:** [September 26, 2012, 9:18pm UTC](https://www.ruby-forum.com/t/using-fastcgi-for-python/223250 "2012-09-26T21:18:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 26, 2012, 9:18pm UTC](https://www.ruby-forum.com/t/using-fastcgi-for-python/223250/1 "2012-09-26T21:18:20Z")

</div>

FastCGI is language-independent and like cgi can serve all languages,  
but  
setting up nginx with fcgiwrap and spawn-fcgi is only used for serving  
Perl.  
Almost all tutorials and instructions use this method for Perl-FasctCGI.  
For  
serving Pythong scripts, the dominant method is uWSGI.

Is there any limitation for using FastCGI for Python that it is not  
usual?  
or the reason is merely that uWSGI is better?

If it is only better, how much? Why there is no such system for Perl?

According to my tests, nginx FastCGI is able to fairly serve all  
scripting  
languages. Is there a problem that may happen at heavily usage?

Posted at Nginx Forum:

> **[Using FastCGI for python](https://forum.nginx.org/read.php?2,231112,231112#msg-231112)**
>
> FastCGI is language-independent and like cgi can serve all languages, but setting up nginx with fcgiwrap and spawn-fcgi is only used for serving Perl. Almost all tutorials and instructions use this method for Perl-FasctCGI. For serving Pythong...

---

<div class="post-metadata">

**Author:** ![etrader](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b5e925/32.png) [@etrader](https://www.ruby-forum.com/u/etrader)\
**Post date:** [September 27, 2012, 7:14am UTC](https://www.ruby-forum.com/t/using-fastcgi-for-python/223250/2 "2012-09-27T07:14:21Z")

</div>

> If it is only better, how much? Why there is no such system for Perl?

uwsgi protocol (and the uWSGI application server) is not python  
specific,  
after python, the perl/psgi plugin is the most used behind uwsgi/uWSGI  
(just as an example). The uWSGI application server can speak fastcgi  
too,  
but uwsgi is preferred because it is a lot more simple to parse and to  
generate.

From a performance point of view, there is no particular advantage.

–  
Roberto De Ioris

> **[unbit - Overview](https://github.com/unbit)**
>
> makers of uWSGI and many more open source projects - unbit
