# What is the best way to use python?

**URL:** <https://www.ruby-forum.com/t/what-is-the-best-way-to-use-python/197928>\
**Category:** NGINX\
**Created:** [October 22, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-use-python/197928 "2010-10-22T20:15:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [October 22, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-use-python/197928/1 "2010-10-22T20:15:31Z")

</div>

Hallo,

what is the best way to use nginx with python?

I use python 2.6, nginx 0.8.53 and bluebream.

Per FastCGI, WSGI or proxy\_pass?

What are the advantages and disadvantages for each way?

Varix

Posted at Nginx Forum:

> **[What is the best way to use python ?](https://forum.nginx.org/read.php?2,143598,143598#msg-143598)**
>
> Hallo, what is the best way to use nginx with python? I use python 2.6, nginx 0.8.53 and bluebream. Per FastCGI, WSGI or proxy\_pass? What are the advantages and disadvantages for each way? Varix

---

<div class="post-metadata">

**Author:** ![varix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e8c25b/32.png) [@varix](https://www.ruby-forum.com/u/varix)\
**Post date:** [October 22, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-use-python/197928/2 "2010-10-22T21:41:17Z")

</div>

Varix,

Your question is very very fuzzy, it very much depends on what kind of  
application/task you want to have,

For example if you use RDBMS, mostly any backend efficiency will be  
stripped down by database operations, that’s definitely the place where  
(if you have working solution already) you may not win anything by just  
switching from to nginx.

I would address python side of your question by recommending these two  
(not mine) performance reports:

[http://nichol.as/asynchronous-servers-in-python](http://nichol.as/asynchronous-servers-in-python)  
[http://nichol.as/benchmark-of-python-web-servers](http://nichol.as/benchmark-of-python-web-servers)

You should do something like that before you’ll choose any of the  
solutions from those that may for you.

What load would you expect in next year or two, what CPU load your  
application generates on that load, what server resources you have to  
work with and so on.

Rule of the thumb is not to plan scaling more than 10 times from what  
your projected load is (taking into account natural growth that you have  
historically).

Alex.
