Best practices for load balancing node.js app on google cloud

google-cloud-platformload balancingnode.jsreverse-proxy

I'm looking for some feedback on deploying Node.js apps in Google Cloud Compute.

We're currently using Google's HTTP Load Balancer and having it funnel traffic directly to our pool of Node.js boxes.

My question specifically, is how are others doing this?
Are you letting traffic from the GCE's HTTP Load Balancer hit your Node.js app directly, OR are you sticking another reverse proxy inside your private network like HAProxy or NGINX to pass traffic to Node.js?

Its seems a bit redundant to me having another reverse proxy but I'm curious if there are any security considerations etc. I'm overlooking by exposing Node to the GCE HTTP LB.

Thanks

Best Answer

If you follow the instructions mentioned in this Help Center article, the traffic is being forwarded on the backend using a proxy after hitting the LB IP address. So the public IP address for your application will be the forwarding rule IP.