使用SignalR进行数据库更改通知 [英] Database change notification using SignalR

查看:271
本文介绍了使用SignalR进行数据库更改通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All .......



我是Asp.Net Web开发的新手..........



如何使用SignalR生成数据库更改通知并使用Asp.Net Web表单应用程序?



提前致谢。



关心

解决方案

你好,



首先你需要设置一些东西

我建议你阅读一些关于这个主题的文章。



灵感来自例如:

SignalR数据库更新通知使用SQL依赖性 [ ^ ]







http://venkatbaggu.com/signalr-database-update-notifications-asp-net-mvc-usiing-sql-dependency/ [ ^ ]



你可以在这个主题上进一步谷歌。



但是如果你是asp.net的新手,首先你应该从更简单的东西开始。



但是简而言之它是​​这样的:



1.在数据库上设置事件

- 当事情发生变化时会触发此事件

2.使用asp.net和信号R(服务器端)你将把这些信息传递给客户

3.使用web-socket / http轮询你会得到这些信息客户(通常是浏览器)



和同样的程序是客户在他身边做出改变,但是从顶部(浏览器)到底部(数据库)



如果你想在实时做很多改变它会消耗很多内存在数据库端,你应该考虑一点性能,因为很多事件都会被触发

Hello All.......

I am new in Asp.Net Web development..........

How to generate database change notification using SignalR and using Asp.Net web form application?

Thanks in advance.

Regards

解决方案

Hello,

First you need to set up few things
I would suggest you to read some article about this topic.

For inspiration for example:
SignalR Database update notifications in ASP.NET MVC using SQL Dependency[^]

or

http://venkatbaggu.com/signalr-database-update-notifications-asp-net-mvc-usiing-sql-dependency/[^]

and you can google many more on this topic.

However if you are new to asp.net, at first you should start with something bit simpler.

But in short it works like this:

1. Set up event on a database
- this event will be fired when something will change
2. using asp.net and signal R (server side) you will deliver this information to client
3. using web-socket/http polling you will get this information to client (usually browser)

and same procedure is when client make change on his side, but from top(browser) to bottom (database)

Also you should think little bit about performance if you want to make a lot of changes in a real time it will consume a lot of memory on database side, because of lot of event will be triggered.


这篇关于使用SignalR进行数据库更改通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆