Do HTML WebSockets maintain an open connection for each client? Does this scale?

前端 未结 5 1229
情歌与酒
情歌与酒 2020-11-28 00:36

I am curious if anyone has any information about the scalability of HTML WebSockets. For everything I\'ve read it appears that every client will maintain an open line of com

5条回答
  •  有刺的猬
    2020-11-28 00:58

    No it does not scale, gives tremendous work to intermediate routes switches. Then on the server side the page faults (you have to keep all those descriptors) are reaching high values, and the time to bring a resource into the work area increases. These are mostly JAVA written servers and it might be faster to hold on those gazilions of sockets then to destroy/create one. When you run such a server on a machine any other process can't move anymore.

提交回复
热议问题