title: Should I use both Nginx AND HAProxy for production node app?
body: <p>I have a node/express/postgres app. I have the postgres db on one node and I plan to have several application nodes behind a separate load balancer so I can scale horizontally.</p>
  
  <p>I set up my application nodes to each run nginx in front of the node app. So I have nginx listening on port 80 and forwarding the web requests to the node app on the same box which is listening on port 3000.</p>
  
  <p>Then I was planning to put HAProxy in the front to handle the SSL termination and load balancing across the application nodes</p>
  
  <p>My question: Is nginx obsolete in this case? Would it be better to just have HAProxy just forward to the application nodes on port 3000?</p>
  
  <p>Are there any benefits of having nginx on each of the application nodes?
  I wont be serving any static files. My node app is a REST api that only returns JSON data. The node app doesn't ever render or serve any html.</p>