如何在服务器和客户端(移动和其他)之间同步任何类型的数据?

发布于 2024-10-04 10:27:08 字数 337 浏览 0 评论 0原文

我有一个多客户端环境,我想在客户端和服务器之间以两种方式同步(服务器->客户端和客户端->服务器)

你知道有什么可以让我开始这个可怕的任务吗? 我有多个要求:

  1. 要同步的数据可能非常不同(文件、消息(收件箱)、消息状态(已读、回复等)。
  2. 对此数据的更改可能发生在客户端和服务器上。
  3. 即使服务器和客户端之间没有通信(它们负责在通信恢复时同步差异),也会发生更改。
  4. 同步过程应该是轻度更新 - 如果可能,仅更新相关更改而不是全部。 您将如何开始构建如此庞大的

协议?我应该在哪里保存数据? 有谁知道我的项目可以基于什么框架?

I have a multi-clients environment, and i would like to sync between the client to the server both ways (server->client & client->server)

do you know of anything that can get me started on this horrified task?
i have multiple requirments:

  1. the data to be synced can be very different (files, messages (inbox), status of messages (read, replied and etc..)
  2. the changes to this data can happen both on the client and on the server.
  3. the changes can happen even if there is no communication between the server and the client. (they are responsible on syncing the differences when the communication is restored)
  4. the sync process should be light-update - when possible update only the relevant changes and not all the information.

how would you start on building such a massive protocol? where should i save the data?
Does anyone know of any framework that i can base my project on?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

俯瞰星空 2024-10-11 10:27:08

如何查看 Live Mesh 及其基于文件类型的 API,http:// explore.live.com/windows-live-mesh?os=other

和 SQL 或数据类型的同步框架,http://msdn.microsoft.com/en-us/sync/default.aspx

How about looking at Live Mesh and its API for the file based types, http://explore.live.com/windows-live-mesh?os=other

and the Sync Framework for SQL or data types, http://msdn.microsoft.com/en-us/sync/default.aspx

嗫嚅 2024-10-11 10:27:08

哪些 Sync Framework 示例代码无法编译?我们测试了我们发布的所有内容,但我们可能会错过一些东西。这将有助于我们了解,以便我们可以修复它!

您还可以查看代码库 (http://code.msdn.microsoft.com/sync )获取完整的示例(如果这对您来说效果更好)。

What Sync Framework sample code wouldn't compile? We test everything we publish, but we might have missed something. It would help us to know so we can fix it!

You can also look at Code Gallery (http://code.msdn.microsoft.com/sync) for complete samples, if that works better for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文