可以在没有 dynamoDB 的情况下使用 AWS App-Sync [英] Can AWS App-Sync be used without dynamoDB
问题描述
我对 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屋!