Last post Feb 28, 2019 03:07 PM by nvielbig
Feb 27, 2019 04:30 PM|nvielbig|LINK
I have just come across SignalR as a candidate for sending progress messages from Server to Client, for my ASP.NET MVC application (it is not ASP.NET Core, it's .NET Framework). I wanted to give a brief overview of what our application does, and see if SignalR
would be recommended from you all. I have no prior knowledge of SignalR, so I don't want to commit to it, if it's overkill, or not right for our use case!
Our application is a simple order processing page, there is only one page.
It's very simple, but the size of the CSV file is up to the user, and we expect that at times, this page could take much longer than a typical user would expect, so I'm researching options for providing a user with a "Processing order 3 of 108..." --> "Processing
order 4 of 108...", etc. I would most likely calculate expected time remaining, and include that in the Progress Text shown to the user.
Does SignalR seem like the right tool for us to use? The examples I have seen in my super short research this morning are mostly related to creating an instant messenger chat, which is way more complicated than our situation.
Thanks for your advice!
Feb 27, 2019 04:44 PM|mgebhard|LINK
SignalR is a persistent connection between the client (browser) and a web application where the application can send messages to the client. SignalR is a fit for your requirements as you want real time processing status.
Feb 28, 2019 01:45 AM|Fei Han - MSFT|LINK
I'm researching options for providing a user with a "Processing order 3 of 108..." --> "Processing order 4 of 108...", etc. I would most likely calculate expected time remaining, and include that in the Progress Text shown to the user.
If you'd like to push processing status from server to client(s) in real time, to implement real-time web functionality, you can use WebSockets or SignalR etc.
Besides, if you'd like to let client(s) itself to request/get processing status, you can set/use a timer on client side to get it on scheduled.
Feb 28, 2019 12:34 PM|PatriceSc|LINK
Yes, and do a search for SignalR progress in your favorite search engine to find samples better matching what you need.
Feb 28, 2019 03:07 PM|nvielbig|LINK
Thank you, everyone!