What is a Unit in terms of Azure Signal R Service?
Asked Answered
P

2

13

So I've been going through Azure Signal R Service for blazor apps and I've noticed they have their pricing according to units as well. The free version allows up to one unit where as the standard version has up to 100 units. I'm currently clueless as to what a "Unit" is, with this regard so it would be nice if someone would be kind enough to give a brief explanation on this. P.s: I am relatively new to Blazor however I have experience with .Net Core & Asp.Net Mvc . Azure Signal R Pricing Details

Publicness answered 22/4, 2020 at 13:44 Comment(0)
D
13

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

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

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) enter image description here

Source: What is the difference between SignalR unit and instance? How SignalR pricing works?

Dabble answered 1/7, 2020 at 21:22 Comment(1)
Thank you so much, this is the exact explanation I was looking for and it makes a lot of sense to me now!Publicness
S
3

Azure SignalR Unit has to be thought as a nodes available for processing messages for you app.

As you can see on the screenshot below, you can only select multiple units when using the "Standard" pricing tier (the free tier only allows one Unit with limited throughput).

When you select the Standard tier, you can then add up to 100 Units, which theoretically can allow you to

  • handle 1000 connections per Unit (with 100 Units, then 100,000 connections),
  • manage 1 million messages per day (with 100 Units, then 100 million connections).

You can scale up to you needs anytime, all depends on your app!

enter image description here

Synapse answered 10/5, 2020 at 16:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.