Scaling Node.js Socket Server with #nginx and #redis
▻https://hackernoon.com/scaling-node-js-socket-server-with-nginx-and-redis-d19bf5c07fa8?source=r
One of the most interesting topics in back-end development is server scaling and distribution.There are many ways to scale your app and to handle a lot of requests and connections. In this article, we will explain one of the most popular ways of scaling Node.js applications, especially Socket connections.Imagine you have a Node application which receives 300 requests per second. It works fine, but one day the requests count becomes 10 or 100 times more. Then, you will have a big problem. Node applications aren’t meant for handling 30k requests per second (in some cases they can, but only thanks to CPU and RAM).As we know Node is a single thread and doesn’t use the much resources of your machine (CPU, RAM). Anyway, it will be ineffective.You don’t have any guarantee that your application (...)