Running multiple instances of nodejs server for scaling

后端 未结 3 1384
耶瑟儿~
耶瑟儿~ 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:32

    Like @poke said, you would use a reverse proxy and/or a load balancer in front.

    But if you want a software to run multiple instances of node, with balancing and other stuffs, you should check pm2

    http://pm2.keymetrics.io/

提交回复
热议问题