Update C# client whenever database is updated

后端 未结 3 1277
我在风中等你
我在风中等你 2020-12-05 17:04

I am using MySQL with C# / Visual Studio 2008. I need to know any method so that if one user updates the database, all the logged in users over the network, are notified tha

3条回答
  •  心在旅途
    2020-12-05 17:56

    You probably need to design some kind of poll functionality in your client. For example, you can send a request each minute asking the database "Have you updated anything since [date the client latest got updates]?" If the database answers true, you let the client request the full set of updates. If not, you let it sleep another minute.

提交回复
热议问题