如何同步 HTML5 本地/webStorage 和服务器端存储? [英] How to synchronize HTML5 local/webStorage and server-side storage?

查看:28
本文介绍了如何同步 HTML5 本地/webStorage 和服务器端存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
最佳同步方式带有服务器的本地 HTML5 DB(WebSQL 存储、SQLite)(2 路同步)

我目前正在寻找解决方案,以便在客户端 HTML5 localStorage 或 Web 存储和(可能是多个)服务器端存储之间进行透明和自动同步和复制(这里唯一的要求是它应该简单且价格合理)安装在常规托管服务上).

I'm currently seeking solutions for transparently and automatically synchronizing and replicating across the client-side HTML5 localStorage or web storage and (maybe multiple) server-side storage(s) (the only requirement here that it should be simple and affordable to install on a regular hosting service).

那么您是否有使用此类提供数据存储的库/技术的经验,这些库/技术可以自动执行客户端-服务器存储同步并允许数据离线或在线或两者兼而有之?我认为这是支持离线模式的 Web 应用程序的一个相当普遍的场景......

So do you have any experience with such libraries/technologies that offer data storage which automate the client-server storage synchronization and allow data to be available either offline or online or both? I think this is a fairly common scenario of web applications supporting offline mode...

推荐答案

Firebase 将此功能作为服务提供.另一种选择是Parse.

Firebase offers this functionality as a service. Another alternative is Parse.

这篇关于如何同步 HTML5 本地/webStorage 和服务器端存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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