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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: 2M fully loaded concurrent WebSockets

158 点作者 lganzzzo大约 6 年前

9 条评论

PaulHoule大约 6 年前
Reminds me of the good old days when an IBM 360 running CICS could support 13,000+ terminals with just 16 MB of RAM.<p>I thought shoehorning was a microcomputer thing until I found out about that!
评论 #19845555 未加载
评论 #19847080 未加载
lganzzzo大约 6 年前
You may also want to check out:<p>- benchmark project repo - <a href="https:&#x2F;&#x2F;github.com&#x2F;oatpp&#x2F;benchmark-websocket" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;oatpp&#x2F;benchmark-websocket</a><p>- oatpp framework repo (the benchmark built with) - <a href="https:&#x2F;&#x2F;github.com&#x2F;oatpp&#x2F;oatpp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;oatpp&#x2F;oatpp</a>
vinay_ys大约 6 年前
Your bottleneck might be packets&#x2F;sec of 150k. Soft interrupt handling is likely getting saturated. If you tune your network (receive side scaling etc) for high packet throughput, you may be able to get the benchmark to find the application bottleneck.
评论 #19847389 未加载
timwis大约 6 年前
Thought this was gonna be about elixir
评论 #19848069 未加载
Thaxll大约 6 年前
The memory seems high actually, I&#x27;ve seen other C &#x2F; C++ &#x2F; Go implementation using less than a 1GB for 1m connections. Pretty cool nonetheless!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;uNetworking&#x2F;uWebSockets</a><p><a href="https:&#x2F;&#x2F;speakerdeck.com&#x2F;eranyanay&#x2F;going-infinite-handling-1m-websockets-connections-in-go?slide=35" rel="nofollow">https:&#x2F;&#x2F;speakerdeck.com&#x2F;eranyanay&#x2F;going-infinite-handling-1m...</a>
评论 #19846083 未加载
nelsonic大约 6 年前
@lganzzzo great work! (bookmarked for further reading...) out of curiosity, did you consider using Rust for this before using C++? or did you dive strait into C++?
评论 #19848948 未加载
chirau大约 6 年前
Get your credit card or your infra ready, whichever applies... someone seating here with me is about to max out botnet rush to you
评论 #19845732 未加载
CptMauli大约 6 年前
Does anybody have real world experience (and maybe data) for websockets when used in a mobile environment (with a lot of dropped connections)?
iandanforth大约 6 年前
I&#x27;m confused. If there are 20M clients and the server is sending 9M messages per minute, doesn&#x27;t that mean that each client is sending less than 1 message per minute?
评论 #19845743 未加载