离线存储-数据库同步
我的问题是:
如果没有连接到互联网,如何让我的网络应用程序存储本地数据,并且一旦连接可用,将它们与服务器同步。
执行此操作的最佳解决方案是什么。
我的应用程序是 cakephp / mysql,我希望能够存储数据,即使连接断开。我也可以使用 Sqlite。我需要知道是否可以进行同步。因此,没有连接,使用 sqlite,连接准备就绪,将其与服务器同步。
My question is:
How can a make my Web app to store local data if not connected to internet and once the connection is available sync them with server.
What is best solution to do this.
My app is cakephp / mysql, I want to beable to store data, even if connection is down. I could use Sqlite too. I need to know if is possible to make this sync. So, No connection, use sqlite, connection ready, sync it with server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 couchdb 文档中所述“CouchDB 文档存储、视图和安全模型旨在协同工作,实现真正的双向复制,文档和设计都可以复制,从而允许将完整的数据库应用程序(包括应用程序设计、逻辑和数据)复制到笔记本电脑以供离线使用,或复制到远程办公室的服务器。缓慢或不可靠的连接使共享数据变得困难。”
as stated in the couchdb docs "The CouchDB document storage, view and security models are designed to work together to make true bi-directional replication efficient and reliable. Both documents and designs can replicate, allowing full database applications (including application design, logic and data) to be replicated to laptops for offline use, or replicated to servers in remote offices where slow or unreliable connections make sharing data difficult."