可以在不使用dynamoDB的情况下使用AWS App-Sync [英] Can AWS App-Sync be used without dynamoDB

查看:70
本文介绍了可以在不使用dynamoDB的情况下使用AWS App-Sync的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Amazon的app-sync的脱机和同步功能感兴趣,但是我想知道是否可以在没有dynamoDB作为后端的情况下使用它.用VTL为dynamoDB编写的graphQL解析器看起来很糟糕.似乎使用mongo后端会更好.有可能吗?

I am interested in the offline and sync capabilities of Amazon's app-sync but I was wondering if it could be used without dynamoDB as the backend. The graphQL resolvers written in VTL for dynamoDB look atrocious. It seems it would be much nicer to use a mongo backend. Is that possible?

推荐答案

是的,您可以在不使用DynamoDB的情况下使用AppSync.您可以直接使用ElasticSearch(您需要配置ES集群,然后设置解析器),也可以使用Lambda并将数据通过管道传输到任何源,例如mySQL.这是有关ElasticSearch的信息: https://docs.aws.amazon.com/appsync /latest/devguide/tutorial-elasticsearch-resolvers.html

Yes, you can use AppSync without DynamoDB. You can use ElasticSearch out of the box (you will need to provision the ES cluster and then setup the resolvers) or you can use Lambda and pipe your data to any source, such as mySQL. Here's info on ElasticSearch: https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-elasticsearch-resolvers.html

这篇关于可以在不使用dynamoDB的情况下使用AWS App-Sync的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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