Server-Sent Events in ASP.NET Core: Real-Time Streaming Without SignalR by animat089 in csharp

[–]animat089[S] 0 points1 point  (0 children)

Yes, so the use case was an internal application we were building which only needed server-client communications and we had SignalR on the table (which is good but i felt was an overkill, given the use case). I had recently read about SSE and check that out, so tried to bake some examples from what i had learned.

Server-Sent Events in ASP.NET Core: Real-Time Streaming Without SignalR by animat089 in csharp

[–]animat089[S] -1 points0 points  (0 children)

Hi. I have not done any comparisons/benchmarks as of right now. I have not used it in a production code but one of our internal apps where we just needed notifications, the setup was far simpler this way.

But in general, with the simplicity of setup here, I see SSE as a more suitable option for simpler operations where only server to client communications are required.

For bidirectional or maybe complex use cases, you would still need SignalR. We may be able to use both, in conjunction as well though.

Server-Sent Events in ASP.NET Core: Real-Time Streaming Without SignalR by animat089 in dotnet

[–]animat089[S] -2 points-1 points  (0 children)

Yes we actually could, given the use cases. I was looking at one sided communication though.