Why does Unicorn need to be deployed together with Nginx?

前端 未结 4 958
梦如初夏
梦如初夏 2020-12-22 16:21

I would like to know the difference between Nginx and Unicorn. As far as I understand, Nginx is a web server while Unicorn is a Ruby HTTP server.

Since both Nginx an

4条回答
  •  忘掉有多难
    2020-12-22 17:06

    Nginx can be used to serve slow clients on a unicorn server as slow clients would choke the unicorn server. Nginx is used as some sort of proxy buffering all requests and responses to slow clients.

    See http://unicorn.bogomips.org/

提交回复
热议问题