Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>While Simon is right about the fact that the load balancer will handle all requests (you don't need to worry about which instance you'll need to connect to), there are other things that you'll need to take into account. From your question I understand that you want to broadcast messages for example.</p> <p>Let's assume you scaled your application to 2 instances:</p> <ul> <li>Instance 1</li> <li>Instance 2</li> </ul> <p>The load balancer will take care that all requests to <strong>yourapp.cloudapp.net</strong> go to one of these instances (round robin). Now let's say users A, B and C are routed to Instance 1 and users D, E and F to Instance 2:</p> <ul> <li>Instance 1: user A, user B, user C</li> <li>Instance 2: user D, user E, user F</li> </ul> <p>So let's assume user A does something in your application and you want to broadcast this to all your users. Instance 1 will only see 2 other connected users: user B and C and will send the message to those users. The issue here is that you also want to send the message to user D, E and F, even though these are on a different instance.</p> <p>That's why your WebSocket/broadcast/... framework (like SignalR) will need to use something like a service bus which is accessible from all instances. Take a look at how SignalR solves this issue by using <a href="https://github.com/SignalR/SignalR/wiki/Azure-service-bus" rel="nofollow">Windows Azure Service Bus</a> or <a href="https://github.com/SignalR/SignalR/wiki/SignalR-with-Redis-Running-on-a-Windows-Azure-Virtual-Machine" rel="nofollow">redis</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload