如何处理与AWS AppSync脱机同步的数据? [英] How to handle data offline Sync with AWS AppSync?

查看:108
本文介绍了如何处理与AWS AppSync脱机同步的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将IOS应用程序设置为DataSource作为"HTTP端点". 我可以获取所有用户并自动存储在mysqli DB中,并且该数据可脱机使用. 我还尝试了对突变的订阅,它也可以正常工作.

I have set up an IOS app with DataSource as "HTTP endpoint". I can fetch all users and auto store in mysqli DB and this data is available offline. I have also tried the subscriptions to mutations which also works fine.

现在我的问题是如何同步数据.假设我有10行,当我离线时有2个新行可用.我怎么知道这些可用?

Now my question is how do I sync the data. suppose I have 10 rows and there is 2 new row available when I was offline. how do I know these are available?

推荐答案

有一个称为Delta Sync的AppSync功能.您可以看一下教程

There's an AppSync capability called Delta Sync. You can take a look at this tutorial

这篇关于如何处理与AWS AppSync脱机同步的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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