0

If I'm using Amazon's Elastic Load Balancer for a Rails app, do I need to put an Nginx reverse proxy between the app and the ELB?

1
  • That depends. Does rails include a web server? Do you need to do any caching or URL rewriting? Do you want additional flexibility? Why are you using an ELB if you only have one server? They're meant to spread the load across many servers.
    – Tim
    Feb 12, 2016 at 0:43

1 Answer 1

1

I believe this post on Stack Overflow will give you a lot of background on Rails and web servers.

In short:

  • Yes you need a web server for rails, but that's not Nginx
  • No you don't need a reverse proxy
  • Yes, you could benefit from having Nginx in your stack, mostly to give you flexibility for things like rewrites, caching, proxying, etc
  • If you only have one web server an ELB is adding to your costs without offering significant advantages. However if you think you'll need to scale to multiple servers later it's probably not a bad idea to start with an ELB. You can always change DNS to do a gradual migration from a single elastic IP to an ELB later though.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .