简体   繁体   中英

Threads , [WebSocket & nodejs] vs [asp.net & signalR] clarification?

In a situation where a ---

  • Client connects to an asp.net ( which uses the signalR FW ) and upgrades the connection to a webSocket connection(tcp)

or

  • Client connects to a Node.js server (and also upgrades the connection)

Question :

If the server now wants to initiate message sending , does it dedicate a new thread to do it ? because if it does , I can't see how signalR || Node.js is scalable because sending a message to a 100K users , can crash the system.

or am I missing something :-) ?

For SignalR the number of threads has no correlation to the number of sockets open to clients.

So answer is No .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM