How efficient SqlDependency (Service Broker) is compared to query by timer?

心已入冬 提交于 2019-12-06 13:47:39
Anshul

I have also been looking for performance metrics of the SqlDependency class, but unfortunately haven't found any. But if I had to guess, I'd say a SqlDependency is more efficient than an external polling mechanism, given everything else stays the same (including polling interval = internal polling interval of the SqlDependency). I say this because when polling externally, you have to consider the overhead that each polling request makes. With a SqlDependency, the service is optimized to reduce the overhead (at the very least, the overhead would be less than external polling). Just my two cents, but I've read at Using SQLDependency vs. periodic polling of a table (performance impact) that the effect is quite the opposite. I will be doing my own testing and post back what works for my scenario.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!