English 中文(简体)
大量同时联系
原标题:lots of simultaneous connections

I m working on chat application. The underlying server uses Node.js and the client/server communication goes via WebSockets.

因此,问题是:有多少同时连接能够操作这种服务器(没有明显的滞后)? 当然,假定服务器是很强的机器。 我知道这不是一个容易回答的问题,但我只想想法、一些近似......或至少是上下层。 当然,我会做一些实际测试,但理论可能有助于我。

另外,我还有另一个问题涉及第一个问题:是否可能将Node.js的申请分成多台机器? 考虑到大多数数据都保存在机器记忆中,而后是数据库。

等待答复:

最佳回答

你们想确保你走得.。 js on high TCP connection number.

这里是一套基于自动网站目录的出版/登记系统测量数字:

  • 180k concurrent, active WebSocket connections
  • 12k/s dispatched pubsub messages
  • 4k/s WebSocket opening handshakes
  • <8kB per WebSocket connection

This is on a FreeBSD i386 virtual machine configured with 2 cores and 2GB RAM.

Autobahn WebSockets 基地设于Sald/Twisted,并运行在一个频率反应堆上。

问题回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签