question

6666666 avatar image
0 Votes"
6666666 asked AgaveJoe commented

Why blazor use signalr ?Compare to grpc when should to use signalr or grpc?

I do not think the web need use real-time communication,but blazor do use signalr why?
If there is a scene that many users will get the same order which to use is better?
let me say.
If there is a order list that is user1 or user2 send

 order01,order02

and other user will grab the order then other user can not see it.
if user05 take the order01 then other user only can see order02.but the user still can send new order.

for the two of signalr and grpc.I think both of them can do it.

  1. grpc:I will call the client procedure to update the list which user
    can see.

  2. signalr: I will change the list directly.

which is better?and why the blazor use signalr not grcp? is it is better than grpc?

dotnet-aspnet-core-generaldotnet-aspnet-core-blazordotnet-aspnet-core-razor
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SignalR uses web sockets. Modern browser have built-in a web socket support. As far as I know modern browsers do not support gRPC that might change in the future.

Deciding between SignalR and gPRC depends on your application specs. Are you building a browser based application that need real time support then go with SignalR. Do you wish to invoke remote procedure call from a web app or code. Then pRPC is a good choice.


0 Votes 0 ·

I want to use xamarin not browser based application. It will have what like real-time.

0 Votes 0 ·

Xamarin has a SignalR SDK . I would implement pRPC if I had HTTP/2 capability. Take the time to learn pros and cons of each technology. Decide which approach best fits your application specifications which are unknow at this time.


0 Votes 0 ·

0 Answers