Forum Discussion

Welmar_Passarel's avatar
Welmar_Passarel
Icon for Nimbostratus rankNimbostratus
Apr 04, 2017

Loadbalacing SignalR

Hello,

 

First of all, I want to introduce what is SignalR: ASP.NET SignalR is a new library for ASP.NET developers that makes developing real-time web functionality easy. SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers. SignalR includes APIs for connection management (for instance, connect and disconnect events), grouping connections, and authorization.

 

After this short explanation I have some doubts about how I should loadbalance it.

 

Is the given the long duration of a WebSocket connection a problem? I'm not sure what king of algorithm of balance I should use to ensure the distribution of traffic.

 

I have a lot of applications in our environment running with SignalR but all of them are published under the same DNS name. Follows my example to make it clearly:

 

Oursapps.contoso.com is our HTTP_HOST and there are a lot applications under that, like:

 

Oursapps.contoso.com/app1 Oursapps.contoso.com/app2 Oursapps.contoso.com/app3 etc

 

So, if I want to publish a new application called app4 and I want that clients with the browser opened feel the change. Is it possible?

 

Regards,

 

Welmar Passarelli