rethinkdb / horizon

Horizon is a realtime, open-source backend for JavaScript apps.
MIT License
6.78k stars 351 forks source link

Swap ws -> uws #698

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi,

If you're interested in getting a major scalability boost you could consider swapping to uws instead of ws. Deepstream.io and SocketCluster have already done so with success and good results and I think you could benefit from this as well.

You can check out more info here: https://github.com/uWebSockets/uWebSockets

danielmewes commented 8 years ago

Looks pretty convincing. It might be worth a try if we can just swap ws out for uws without changing any code.

ghost commented 8 years ago

That's the idea at least. There might be some small quirks and incompatibilities but most projects swap without even knowing anything changed (until they benchmark at least). If you encounter any issues you can just report them and I will see what we can do about it.

bartekus commented 8 years ago

I think going with uws is not only the right choice here but also the most performant and cost-effective in terms of the implementation cost and overall memory use footprint.