Nginx, Unicorn and Heroku

I am new to ROR development and currently I am using Herokuo (with Thin) to run my web application.

I read about starting Zero Downtime and I came across nginx and unicorn.

Can someone explain to me what Nginx is and is it used in conjunction with Heroku? Is the same for the unicorn?

What are the pros and cons of using it instead of thin?

Thank you very much in advance!

+4
source share
1 answer

nginx is a web server; in the context of Ruby on Rails applications, it receives a request from the user and passes it to the application server. The application servers that are currently popular are:

  • thin
  • WEBrick
  • cougar
  • unicorn

In the context of heroku, you have a choice of application servers, but not a choice of web servers.

When you accept yourself, using a unicorn versus a subtle one can help you break the zero. However, heroku can help you break up without downtime using any of the thin / puma / unicorns.

For experimental support for zero hero downtime: https://devcenter.heroku.com/articles/labs-preboot/

+5
source

All Articles