如何在设备之间高效地同步数据文件 [英] How to Efficiently Syncronise Data Files between Devices

查看:71
本文介绍了如何在设备之间高效地同步数据文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello There

Hello There

我正在尝试研究如何在我的用户设备之间有效地同步我的应用程序的数据文件。 我正在使用JavaScript编写Metro风格的应用程序。

I am trying to work out how to efficiently syncronise my application's data files between my user's devices.  I am writing a Metro style app using JavaScript.

我不想使用漫游文件夹,因为它有各种限制和限制,例如:事实上,我不知道同步会花多长时间,特别是在用户更新我的应用程序的数据
文件然后关闭他们的设备的情况下。

I do not wish to use the Roaming Folder, because of its various limitations and restrictions, e.g. the fact that I do not know how long the syncronisation will take, particularly in the case where the user makes updates to my application's data files and then closes down their device.

我还尝试使用SkyDrive文件夹同步文件。 使用SkyDrive API上传和下载文件非常慢,必须使用前台线程完成(它会接管应用程序的UI)。

I have also tried syncronising the files using a SkyDrive folder.  Uploading and downloading files using the SkyDrive API is quite slow, and has to be done using the foreground thread (it takes over the application's UI whilst it does so).

我已经安装了SkyDrive桌面应用程序(集成到Windows资源管理器中的应用程序),但我无法读取和写入它使用的本地SkyDrive目录(我得到的相同"访问被拒绝"错误,当我尝试和$ b时$ b在我的应用程序的沙盒区域之外读取和写入文件。)

I have installed the SkyDrive Desktop application (the one that integrates into Windows Explorer), however I am unable to read and write files to the local SkyDrive directory that it uses (I get the same "Access denied" error that I get when I try and read and write files outside of my application's Sandboxed area).

如果我提示用户使用文件夹选择器选择SkyDrive文件夹,我可以在其下面临时创建文件夹和文件,然而,应用程序无法在重新启动时访问这些文件。

If I prompt the user to select the SkyDrive folder using the Folder Picker, I can temporarily create folders and files underneath it, however the application is unable to then access these files when it is restarted.

非常感谢

Geoff Olding

Geoff Olding

推荐答案

您是否考虑过Windows Azure Blob存储?  您可以使用基于REST的API:  http://msdn.microsoft.com / en-us / library / windowsazure / dd135733

Azure Blob存储有一个成本,但它非常低。  例如,50Gb + 2Million交易/月将在

There is a cost for Azure Blob Storage, but it's pretty low.  For example, 50Gb + 2Million transactions / month would cost under


每月5下花费。


这篇关于如何在设备之间高效地同步数据文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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