Question

I'm building a chat-system in javascript with nodejs as server-side language. So far I've used Socket.io as I though it would be able to handle a large number of clients (aiming at 100k+) but today, 1 week before we are releasing beta I learned that Socket.io have major problems with scalability and so I've decided to change my approach. I need quick, live data transfers between server and client and now I don't know where to look. Maybe simply WebSockets and try to develope these?

Était-ce utile?

La solution

I would definitely use ws, it is the fastest library atm.

https://github.com/einaros/ws

We are already using it in our project, weezeel, and it is insanely fast plus it supports thousands of concurrent connections.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top