Scale-out Node.js with Socket.io on Windows Azure

I followed the “Build Node.js chat application ...” , which shows step-by-step how to deploy Node.js with Socket.io to provide real-time webapp chat.

The only thing missing is to show how to scale this application, since I found that scaling such an application in Windows Azure is not so easy, because Azure LB only supports Round-robin policy.

I found socket.io-servicebus which provides some solution for pub / sub store needs. But this is not enough, because Socket.io has a known error in the handshake phase # 952 , which means that the handshake phase cannot work without a sticky session.

Any ideas?

+4
source share
1 answer

Disclaimer: I have not tried this.

The return of the first version where node was supported in cloud services. I often ran node as a worker rather than a web role to avoid iisnode. This was necessary then because Windows Server 2008 R2 did not support websites at all. Therefore, to use socket.io with node, this was an approach. Now that Windows Server 2012 is available, we no longer do this.

, osfamily 2 (SessionAffinity) osfamily 3 (SessionAffinity4), ( -). ( ).

, SignalR Service Bus, Windows Azure. . SessionAffinity.

, Windows Azure WebSites ARR . , - . ()

+1
source

Source: https://habr.com/ru/post/1527987/


All Articles