Site-To-Site Data synchronization Over WCF

自闭症网瘾萝莉.ら 提交于 2020-02-04 10:08:25

问题


I'm developping a distributed solution with a WebSite and a Corporate Application Management.

Here is the architecture :

Web Site :

  • Database (SQL Server)

  • Web Site : ASP.NET MVC

  • Data synchronization Services (WCF)

-

Corporate Management Application :

  • Database (SQL Server)

  • WinForm Application

  • Data synchronization Services (WCF)

I want to perform Site-To-Site data synchronization.

Note : The Corporate Management Application Database is the Warehouse datastore.

Usually i want Corporate side asks Web Site for data synchronization.

So here is the scenario :

  • (WebSite Side) Some data changed => Local DataStore
  • (Corporate Side) Ask WebSite for changes => Sync data from Web Site datastore to warehouse datastore
  • (Corporate Side) Some data changed => Warehouse store => Sync to WebSite Local Datastore

How can i achieve this and what is the best approach ?


回答1:


Have a look at the Microsoft Sync Framework.

http://msdn.microsoft.com/en-us/sync/default.aspx

I've used it successfully over a WCF channel to synchronize the state of 2 databases. The Sync Framework site is pretty good at working though your requirements and showing you how to approach the problem. If you can get away with using the change tracking built into SQL Server, it should fall together pretty quickly.



来源:https://stackoverflow.com/questions/1828262/site-to-site-data-synchronization-over-wcf

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