I have a couple of questions about the combination of Nginx and Nodejs.
I've used Nodejs to create my server and now I'm facing with a concurrent request to my server when there are 2 requests at the same time - the server crashes. I was thinking about creating a Load balancer (using Nginx) and cloning my server to 2-3 servers, but then I didn't understand how to create this load balancer.
I used this tutorial and created a dummy server and everything worked well. Then I have struggled with the idea of integrating it with my application and didn't know how it should be.
- Do I need to create a unique server for the Nginx and then configure it to route the traffic to the servers? or I need to install it on my server locally and configure it to different domains?
My server is hosted on Heroku, and as part of my testing with it, I was thinking about uploading my server into 2 different apps, create one more app for the Nginx and then to route the requests to the rest apps. Is it sounds like a good test of Nginx load balancing ? or you think that there are better ways to test it?
I'm new with load balancing implementation and I will be happy to hear your thoughts and help.
Thank you.
via drorAlfasi
No comments:
Post a Comment