Difference between SignalR unit and instance and SignalR pricing

This post has been republished via RSS; it originally appeared at: IIS Support Blog articles.

In one case, I have noticed that SignalR components and pricing model might be confusing for Azure users who are discovering this service.

 

SignalR instance is what you need to create first to use SignalR.

 

After searching for SignalR in Azure and going to SignalR homepage, you can create an instance by clicking “Add”. This is the very first step to use SignalR.

 

signalr-instance.png

 

A unit is a sub-instance that processes your SignalR messages. Units are used to increase the performance and connections count.

 

Think unit this way: Let’s say you have a web server that is not enough to handle the web traffic. You can add two more servers to load balance the traffic. This increases the performance and number of requests your environment can handle. In this example, the environment is an INSTANCE. Each server is a UNIT. Before adding new servers, you have 1 instance and 1 unit in that instance. After adding new servers, you have 1 instance and 3 units in that instance.

 

SignalR Pricing

 

  • In FREE plan, you can use only 1 unit and this unit can handle maximum 20 concurrent connections
  • In STANDARD plan, you can use 100 units. Each unit can handle 1,000 concurrent connections
    (Please note the difference: The unit in FREE plan supports maximum 20 connections while a unit in STANDARD plan supports 1,000 connections. In terms of pricing, FREE plan unit and STANDARD plan unit are not the same)

 

Only outbound messages are counted for billing. There is more information on this page:

 

For billing, only outbound messages from Azure SignalR Service are counted. Ping messages between clients and servers are ignored. Messages larger than 2 KB are counted as multiple messages of 2 KB each. The message count chart in the Azure portal is updated every 100 messages per hub. For example, imagine that you have three clients and one application server. One client sends a 4-KB message to let the server broadcast to all clients. The message count is eight: one message from the service to the application server and three messages from the service to the clients. Each message is counted as two 2-KB messages.

 

 

Useful Links about SignalR:

Information about Azure SignalR Pricing:

REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.