4 ms·
We did this with Node.js and uWebSockets and it scaled easily to a few million web sockets on ~10 machines so I can confirm the stack works in practice
by inglor 4y ago
We did this with Node.js and uWebSockets and it scaled easily to a few million web sockets on ~10 machines so I can confirm the stack works in practice
- prox 4y agoI am trying to imagine why one would need millions of web sockets :) What are the use cases here?
- winrid 4y agoMillions of clients. IOT devices? Who knows.
- ThePhysicist 4y agoIt's unlikely you'd want to connect IOT devices to a backend using web sockets, I'd use a UDP based protocol for that, e.g. QUIC. But for web clients it makes sense.
- winrid 4y agoMQTT is usually the go to protocol for IOT devices. You can do MQTT over WebSockets to help prevent issues using odd ports on home networks etc.
- inglor 4y agoThis was working for Peer5 (YC startup) - building a p2p CDN, these were video viewers in live events (e.g. the world cup).
- r1ch 4y agoWe used the C++ version of uWebSockets to replace a legacy node app. We went from four fully loaded cores to about 20% of a single core and a fraction of the memory usage. It's a great library.