question

PawelKosinski-4957 avatar image
0 Votes"
PawelKosinski-4957 asked YijingSun-MSFT edited

ASP.NET 5 / Core web app with redis and signalR

Hi everyone,

Would anyone be able to point me to good material and / or method of using redis with signalr to push live updates to a page?

I basically have a linux server that runs shell scripts that occasionally publish their output to a redis channel. (pub/sub)

I want to build a web app that subscribes to this channel and while the page is open displays any message pushed to that channel.
Possibly in the future I would need to be able to publish message myself to the same (or different channel).

Now I spent half a day looking and I am getting lots of examples using command line apps but not finding anything that shows it functioning on a website.

Would anyone be willing / able to point me to a reading learning material or a tutorial that would help me achieve what I need?

dotnet-csharp
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.

PawelKosinski-4957 avatar image
0 Votes"
PawelKosinski-4957 answered

I think I've tried something similar but I tried to modify hub directly - then I encountered problems as I did not know that the hub is disposed after it is used.

Would you be able to point me to some source material for the solution you suggest - just to get me started?

Much obliged!

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.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered Bruce-SqlWork edited

you would create a service that subscribes to a redis channel to get the changes. it would also be a signal/r client, and send the change to the signal/r hub the recieved.

the service could be a background service in a asp.net core web app.

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.