I think whatever you are comfortable with, and above all, experienced with;
that being said I usually use nginx+uwsgi or nginx+gunicorn so I will tell
you my experience with them:

Pros:

   - Easy setup of nginx, configuration is pretty straight forward.
   - Gunicorn has a gunicorn_paster script which can easily run TG2
   - UWSGI is a tad faster than gunicorn but I has many features you might
   want to checkout in more advanced deployments (Emperor mode, Zerg Mode,
   fastrouter, etc).
   - Nginx serves static files very fast

Cons:

   - UWSGI configuration is not simple, documentation could be better.
   - Nginx does not come as standard in many installations, but if you have
   complete control of the server this should not be an issue.
   - More process to manage than simple Apache+mod_wsgi, you might need to
   also use something like supervisord to keep up your gunicorn/uwsgi servers
   running.

I did some benchmarking a while ago and did not found a huge difference
between Gunicorn and UWSGI, but I haven't properly benchmarked nginx vs
apache except for PHP, where nginx+php-fpm seems to be a tad faster while
being able to handle more concurrent requests (I don't recall the exact
numbers but at some point apache just gave up and nginx kept going a bit
further).

Regards,
Carlos Ruvalcaba



On Wed, Feb 5, 2014 at 10:48 AM, Alessandro Molina <
[email protected]> wrote:

> You might want to take a look at the deployment section of the Cookbook:
> http://turbogears.readthedocs.org/en/latest/cookbook/deploy/index.html
>
>
> On Wed, Feb 5, 2014 at 3:22 PM, pkraus <[email protected]> wrote:
>
>> When creating a publically accessiable website what is the best option
>> for deploying are app. I have always historically used apache2 with modwsgi
>> but i am not sure if there is a better way or what the pro's and con's are
>> and how you as a group decide how to deploy.
>>
>> TIA
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TurboGears" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/turbogears.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to