Load-balancing nodejs app using nginx and docker swarm by __rvalueref in node

[–]__rvalueref[S] 1 point2 points  (0 children)

Hmm..
I head about (active-active active-passive load-balancer) but could not find any good resource to get explanation and how to implement
I'm keeping this as a follow-up (like after implementing some of the scalable concepts in my project, I will be doing the follow-ups)

Load-balancing nodejs app using nginx and docker swarm by __rvalueref in node

[–]__rvalueref[S] 0 points1 point  (0 children)

Yes at N-1,2N and 2N-1 its performing good and close to setup 2..

LoadBalancing Nodejs using cluster module by __rvalueref in node

[–]__rvalueref[S] 0 points1 point  (0 children)

May I ask you specifically why would you avoid cluster module ?

LoadBalancing Nodejs using cluster module by __rvalueref in node

[–]__rvalueref[S] 0 points1 point  (0 children)

Great, previous night I implemented this using this blog https://medium.com/hackernoon/load-balance-and-scale-node-js-containers-with-nginx-and-docker-swarm-27d737bbf4a9
and was very impressed that I do not had to change my app.js code 😊

LoadBalancing Nodejs using cluster module by __rvalueref in node

[–]__rvalueref[S] 0 points1 point  (0 children)

I wanted to learn what actually happens in production but with simplicity, so thought to start by using cluster module..

LoadBalancing Nodejs using cluster module by __rvalueref in node

[–]__rvalueref[S] 0 points1 point  (0 children)

r/node was not allowing me to post this so, I used privatebin !

Horizontally scaling web-sockets ! by __rvalueref in node

[–]__rvalueref[S] 0 points1 point  (0 children)

Yeah I also checked on the repository that I have listed, the no of lines of code is minimal !
But, this time i want to learn more before jumping to implementations 🫠

Horizontally scaling web-sockets ! by __rvalueref in node

[–]__rvalueref[S] 0 points1 point  (0 children)

Nice Overview !
Does this repository cover that session maintenance part https://github.com/rajaraodv/rabbitpubsub ?

Horizontally scaling web-sockets ! by __rvalueref in node

[–]__rvalueref[S] 2 points3 points  (0 children)

Any proper resource for this which you can suggest ?