I decided to set up a new Web service server, but I had to decide what to do with the server for that. I didn't benchmark myself, I just gathered information on the net, but I'll make a note of what I looked up at that time.
--The service is made in Python (Pyramid) --During development, the service was started using the "pserve" command that will be automatically used when pyramid is installed (the pyramid tutorial stated that this can be used).
――Is it really okay to provide services using this "pserve" command even after publication? ――Should you consider other means and use it if there is a better one?
--Use nginx + gunicorn instead of pserve
--pserve is responsible for both providing static content such as images and dynamic content such as query results. --It is better to provide static content and dynamic content by different servers (so-called reverse). Proxy)
--Simple and fast, specializing in processing many simultaneous requests -What is Nginx? I asked the engineer about the difference from Apache
――Somewhat fast, it has a high affinity with Pyramid and is easy to operate. -Running Pyramid on Gunicorn - vs fastcgi - vs uwsagi
Recommended Posts