Apache + mod_wsgi vs nginx + gunicorn

前端 未结 4 1578
天涯浪人
天涯浪人 2021-01-31 17:04

I want to deploy a django site (it is the open source edx code on github).

I am faced with choosing between using

  1. Apache with mod_wsgi
  2. nginx with
4条回答
  •  我在风中等你
    2021-01-31 17:27

    Well,the few milliseconds you get with Nginx will not make a hudge difference regarding the time other processes take. Nginx may save RAM but it would only be a great difference on servers with a few RAM. For specific uses on big website there could be some more notable differences but this will become an expert affair then.

    The real difference for most is probably the ease of learning. I don't find Apache to be specifically hard to use and the doc is clean. However most of Python tutorials I found are about using Nginx with Gunicorn.

    If you already know how to use Apache with Python it would probably be more straight to the point to use it, unless you want to learn Nginx too to improve your CV.

    However, if you are a newcomer, there is more documentation about Nginx with Python. It makes it the easier option.

提交回复
热议问题