title: SignalR connections on Azure with load balancer
body: <p>I have the next setup in Azure Resource Manager : </p>
  
  <ul>
  <li>1 scale set with 2 virtual machines having Windows Server 2012 . </li>
  <li>1 Azure Redis cache (C1 standard)</li>
  <li>1 Azure load balancer (Layer 4 in the OSI network reference stack)
  Load balancer is basically configured using :<br>
  <a href="https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-get-started-internet-portal" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-get-started-internet-portal</a>
  . Session persistence is set to none for the rules.</li>
  </ul>
  
  <p>On both VMs from scale set I have deployed a test web app which uses SignalR 2 on .Net 4.5.2.
  The test web app uses Azure Redis cache as backplane . 
  The web app project can be found here on github : <a href="https://github.com/gaclaudiu/SignalrChat-master" rel="nofollow noreferrer">https://github.com/gaclaudiu/SignalrChat-master</a>.</p>
  
  <p>During the tests I did notice that after a signalr connection is opened , all the data sent from the client, in the next requests, arrives on the same server from the scale set , it seems to me that SignalR connection know on which sever from the scale set to go.</p>
  
  <p>I am curios to know more on how this is working , I tried to do some research on the internet but couldn't find something clear on this point .</p>
  
  <p>Also I am curios to know what happens in the next case : 
  Client 1 has a Signalr opened connection to Server A.
  Next request from the client 1 through SignalR goes to the Server B. </p>
  
  <p>Will this cause an error ? 
  Or client will just be notified that no connection is opened and it will try to open a new one?</p>