简体   繁体   中英

Bouncy or nginx for load balancing websockets?

I want to add a load balancer infront of my nodejs websockets server. The plan is to add another node on another physical machine and have a load balancer in front. The load balancer will also be on its own physical machine.

The requirement is that several 1000s of simultaneous connections could be handled and I'm a bit worried about bouncys upper limitations.

I like the consistency of using bouncy since it is a node module, but at the same time it seems like nginx could handle more socket connections or be a bit more stable.

Anyone who has experience with bouncy or nginx as load balancer and could give me some advices?

Thanks!

nginx is pretty good for mass connections, check these answer.

https://stackoverflow.com/a/16289251/2325522

there you can see how to use Nginx as load balacer.

The only problem that you can have is the mass band-width needed to serve 1000's of simultaneous connections.

Example:

5000 clients * 0.25Mb/request (a little one)

=

1250mb (1.25Gb outgoing band-width)

Hope these solve your doubts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM