在用户断网时收集数据并同步
我遇到了这样一个场景:我们的一些用户需要在无法访问网络(在笔记本电脑上)的情况下执行某些操作。我想我可以在他们的机器上安装 SQL Express 并使用服务代理对他们的事务进行排队,当他们重新联机时,消息可以发送到接收服务器。
这是一个有效的选项吗?您会建议一种不同的技术吗?我只是想,使用 SQL Express 进行单向访问会更好,然后我就可以利用 SQL Server 中的服务代理功能吗?
有什么想法吗?一如既往地感谢...感谢您的意见。
--S
I was given a scenario where some of our users need to do some things while they won't have access to a network (on a laptop). I was thinking that I could install SQL Express on their machines and use service broker to queue up their transactions and when they are backonline the messages could be sent to the receiving server.
Is this a valid option? Would you suggest a different technique? I was just thinking that using SQL Express for one over access would be better and I could then possibly take advantage of the service broker functionality in SQL Server?
Any thoughts? Thanks as always...appreciate the input.
--S
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我之前见过的效果很好的方法是使用 SQL Express 或 SQL Server CE,后者不需要安装(只需使用程序集进行部署),并且将在进程中运行,因此不需要任何服务。
当用户确实可以访问网络时,应用程序将使用 同步两个数据库微软同步框架。
What I've seen used before that worked well was to use either SQL Express or SQL Server CE, the latter does not require an install (can be just deployed with assemblies), and will run in process, so no service is required.
When the user did have access to the network, the application would synchronize the two databases using the Microsoft Sync Framework.