Can AWS App-Sync be used without dynamoDB

六月ゝ 毕业季﹏ 提交于 2019-12-21 12:18:39

问题


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?


回答1:


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




回答2:


Yes aws appsync can be used without dynamodb . In datasource section of your appsync module you can see options to which you want to link your appsync module. Even don't worry about schema generation. Appsync help you to do it automatically . Just enable auto generate schema . https://docs.aws.amazon.com/appsync/latest/devguide/tutorials.html



来源:https://stackoverflow.com/questions/49575203/can-aws-app-sync-be-used-without-dynamodb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!