Running multiple instances of nodejs server for scaling

后端 未结 3 1381
耶瑟儿~
耶瑟儿~ 2021-02-06 08:46

I am running a nodejs server on port 8080, so my server can only process one request at a time. I can see that if i send multiple requests in one single shot, new requests are q

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 09:26

    Just a point to be added here over @sheplu, the pm2 module uses the node cluster module under the hood. But even then, pm2 is a very good choice, as it provides various other abstractions other than node cluster.

    More info on it here: https://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/

提交回复
热议问题