I’m looking to set up an Elixir/Phoenix app in front of an existing application and have this app act as a queuing system during high load events. This is probably never going to see real-world action as I’m mostly looking to learn more about this side of things.
I’ve never created an application to act as a reverse proxy but it seems like something Elixir/Erlang would handle well. Is there a recommended way to handle this? Any packages/articles to handle this would be appreciated!
A reverse proxy behind apache/nginx is very common. I run a couple of deployments like this where I have a phoenix application mixed in among normal php apps.
For normal HTTP/HTTPs traffic I’ve used both apache and nginx but I had problems getting apache work with websockets (I did not spend too much time on it though).
I wish I had saved the sources of this information, then you could read a bit more about it. I was certain that phoenix official documentation had a chapter on reverse proxy with nginx but couldn’t find it.