D
D
Dmitry Gavrilenko2019-01-16 11:03:07
ASP.NET
Dmitry Gavrilenko, 2019-01-16 11:03:07

Is it okay to use SignalR for real-time data display?

Hello. Suppose there is a front on Ang 7 and a back on ASP Core. At the front, there is a dashboard - a large table displaying information about sensor readings with graphs. CRU-d- operations are available. Accordingly, a plurality of users or other sources of information may modify the data. This data must be updated in real time for all users in the dashboard.
I see 3 ways:

  • constantly pull Web API on the front
  • listen on the SignalR front, which, when data changes, will send a message to the front stating that you need to pull the API to get up-to-date data <--- according to my most norms
  • as in the paragraph above, only SignalR does not notify about changes, but itself transmits these changes

Which method is correct? What are the alternatives?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eRKa, 2019-01-16
@kttotto

I would prefer the option that the signal sends a message to the client that the data on the back has been updated, even with a data type, and the client already decides when and what type of data to update (pull api on the back with data).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question