Update UI with SignalR and Knockout when manually updating DB

后端 未结 2 697
遇见更好的自我
遇见更好的自我 2021-01-24 22:38

I have had a search around SO for this, but didn\'t come across anything obvious. I have a dashboard of jobs, and their status continually changes throughout the day and I\'m t

2条回答
  •  北海茫月
    2021-01-24 23:18

    this makes sense, the application has no idea that data in the DB has changed. You need some trigger/notification to inform the application to query the database.

    ideally you would not update the database manually/directly. You would use some service to query consume the data, process/validate the data, push the data to the database. send notifications to other systems that data was imported. (lots of different was to do this.)

    in this case your website could receive a notification data was imported and kick off the dashboard queries.

提交回复
热议问题