In production, Apache + mod_wsgi or Nginx + mod_wsgi?

前端 未结 4 947
灰色年华
灰色年华 2020-12-07 11:05

What to use for a medium to large python WSGI application, Apache + mod_wsgi or Nginx + mod_wsgi?

Which combination will need more memory and CPU time?
Whi

4条回答
  •  感动是毒
    2020-12-07 11:30

    One thing that CherryPy's webserver has going for it is that it's a pure python webserver (AFAIK), which may or may not make deployment easier for you. Plus, I could see the benefits of using it if you're just using a server for WSGI and static content.

    (shameless plug warning: I wrote the WSGI code that I'm about to mention)

    Kamaelia will have WSGI support coming in the next release. The cool thing is that you'll likely be able to either use the pre-made one or build your own using the existing HTTP and WSGI code.

    (end shameless plug)

    With that said, given the current options, I would personally probably go with CherryPy because it seems to be the simplest to configure and I can understand python code moreso than I can understand C code.

    You may do best to try each of them out and see what the pros and cons of each one are for your specific application though.

提交回复
热议问题