问题描述
我希望使用SignalR提供更新的客户端,更新从哪里来时,事情在整个应用程序发生时更新的消息表。
I'm hoping to use SignalR to provide updates to the client, the updates are going to come from a message table which is updated when things happen across the application..
我的问题是,应用程序将有大约500〜600并发用户数和我不能都具有他们对表到数据库的连接,并不断地投票。
My problem is that the application will have around 500-600 concurrent users and I cant have all them having a connection to the database and constantly polling against the table..
什么编号喜欢做的是有一个单一的东西{}?轮询表,然后更新中心,而不是每个连接投票。我想利用这个单身的?所以也许当应用程序启动事情是创建随后将完成所有的工作真的..
What id like to do is have a single thing{?} polling the table and then updating the hubs rather than each connection polling.. I was thinking of using a singleton for this? so maybe when the application starts something is created that will then do all the work really..
我的问题是 - 说我有一个单身的有哪些被解雇每次有更新时的事件..会的表现是什么样子说500控制器订阅这个活动?
My question is - say I had a singleton that had an event which was fired every time there was an update.. what would the performance be like for say 500 controllers subscribing to this event?
另外..如果有更好的方法来做到这一点,然后高兴说..这是我第一次和唯一的想法可悲!
Also.. if there is a better way to do this then pleases say.. this is my first and only idea sadly!
任何帮助将是非常美妙!
any help would be fantastic!
编辑:数据带来一个遗留应用程序提供的,我有过怎样输入数据,因此将需要数据库查询没有控制权
the data is bring provided by a legacy application and I have no control over how the data is entered so database polling will be needed.
STE。
推荐答案
对不起,这个解决方案并不signalR,但也许你可以从中获得灵感。
Sorry that this solution is not signalR, but maybe you can get ideas from it.
下面是下载
这篇关于更新SignalR轮询数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!