trello在使用socket.io时遇到的问题
发布于 3年前 作者 sumory 1811 次浏览

trello.com是基于Node.js,Nosql搭建的团队协作系统,在看它的tech-stack时看到trello在使用socket.io(websocket)时遇到了问题:

The Socket.io server currently has some problems with scaling up to more than 10K simultaneous client connections when using multiple processes and the Redis store, and the client has some issues that can cause it to open multiple connections to the same server, or not know that its connection has been severed. There are some issues with submitting our fixes (hacks!) back to the project – in many cases they only work with WebSockets (the only Socket.io transport we use). We are working to get those changes which are fit for general consumption ready to submit back to the project.

大体是这个意思:当连接数大于10000时会出现问题,client会开启到同一个server的多个连接,或是client不知道它已经建立了与server的连接。后面说的trello提交的fix没有完全解决socket.io的这个问题。

有人遇到过类似的状况吗?我遇到过连接会自动闪断的问题,已经忘记场景了,对socket.io还不熟悉。

回到顶部