TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

uWebSockets 0.10.0

123 点作者 alexhultman超过 8 年前

6 条评论

socmag超过 8 年前
We are using uWS for our platform which is completely written in native C++.<p>I haven&#x27;t tested the scalability to a million clients, but I have no reason to doubt it could handle it.<p>On the other hand, I <i>have</i> tested with 20k clients each sending 100 x 128 byte messages a second.<p>So I&#x27;ve tried pumping 2 million messages a second through our platform (which is at the envelope of my expected load), and the server just sits there and takes it. At these levels saturating the network interface is the main issue.<p>I&#x27;ve also tried it in single core, 4 core, 8 core and 20 core threaded configurations. Everything works as it should and contention is quite minimal.<p>The ability to achieve that over WebSockets is largely due to the work Alex has done (and continues to do) to squeeze every last ounce out of the stack.<p>As far as I&#x27;m concerned uWebSockets 0.10.0 is rock solid and at the point where using it in production is totally fine.<p>I can totally recommend it.<p>Congrats on the release Alex and thanks for the lib!
评论 #12644607 未加载
k__超过 8 年前
I like it.<p>All the nice optimizations that you only can do if you know what&#x27;s happening in the background.<p>I read post about how Bluebird Promise implementation is more efficient than others and it was basically stuff like storing state as binary flags instead of boolean vars etc. pp.
jessaustin超过 8 年前
This is awesome: when one clicks on &quot;Language Details&quot;...<p><pre><code> Makefile 1.2% CMake 0.8% QMake 0.4% </code></pre> That is a highly optimized build process.
wolframhempel超过 8 年前
congratulations, amazing release. Very much looking forward to working together on <a href="https:&#x2F;&#x2F;deepstream.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;deepstream.io&#x2F;</a>
评论 #12643521 未加载
dvdplm超过 8 年前
Do you have any performance numbers for other non-Node WS libraries, e.g. Go (stdlib and gorilla), Rust (ws-rs, mio-websocket etc), Python, Ruby? Would be super interesting to see!
评论 #12645042 未加载
lpinca超过 8 年前
Congrats for this achievement. For anyone using this in Node.js I strongly suggest to run your own benchmarks as uws is no way 47x 18x 33x and 2x times faster&#x2F;more lightweight than ws. Also check how the improvements are obtained.
评论 #12643628 未加载
评论 #12643598 未加载
评论 #12643620 未加载