同行同步 [英] Peer Sync

查看:91
本文介绍了同行同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对同步框架还不熟悉。我的方案如下,我们将有一个中央SQL 2008数据库和许多使用SQL Compact 3.5的客户端。 紧凑型客户端并不总是连接到SQL 2008服务器,但是我们希望客户端
能够在彼此之间进行同步。 我的问题是,是否有人就如何在多个客户端之间自动执行后台同步提出任何建议。例如,我们希望客户端1与客户端2和客户端2同步以与
客户端3和客户端3同步以与客户端1同步。 我现在可以同步两个紧凑型数据库,我只需要获得一些关于如何自动设置客户端应用程序的建议,以便客户端1知道客户端2可用于同步和客户端2
知道客户端3可用而客户端3知道客户端1可以同步。 有任何想法吗?谢谢

I am fairly new to the sync framework. My scenario is as follows, we will have a central SQL 2008 database and many clients using SQL Compact 3.5.  The compact clients will not always be connected to the SQL 2008 server, however we will want the clients to be able to sync between each other.  My question is, does anyone have any recommendations on how to perform a background sync automatically between multiple clients. For example, we will want Client 1 to sync with Client 2 and Client 2 to sync with Client 3 and the Client 3 to sync with Client 1.  I can sync two compact databases now, I just need to get some recommendations on how to automatically setup the client application so that Client 1 knows Client 2 is available to sync and Client 2 knows Client 3 is available and Client 3 knows Client 1 is available to sync.  Any ideas? Thanks

推荐答案

开箱即用的同步Fx不会跟踪谁的同步对(哪个对等方正在与另一个对等方同步),也不能检查是否存在peer可用于同步。

Sync Fx out of the box doesnt keep track of who's sync pairs (which peer is synching with another peer) nor does it enable checking if a peer is available for synching.

在您的情况下,您可能希望在每个对等方中创建一个表或  config来记录它需要与哪个对等方同步并以编程方式检查是否peer,如果可用于同步。

in your case, you might want to create a table or config in each peer to record which peer does it need to sync with and programmatically check if the peer if available for synching.


这篇关于同行同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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