如何与AWS AppSync一起开发无服务器团队? [英] How to develop serverless as a team with AWS AppSync?

查看:112
本文介绍了如何与AWS AppSync一起开发无服务器团队?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于开发无服务器应用程序,尤其是 AWS AppSync ,我有一个一般性的问题.我们正在考虑为一个小项目实现无服务器化,我想知道人们在创建无服务器"应用程序时通常如何设置开发环境.

I have a general question about developing serverless applications and AWS AppSync in particular. We're thinking about going serverless for a small project and I'm wondering how people generally set up their development environment when creating a "serverless" application.

我已经看到无服务器框架提供了一些在本地运行lambda的功能,但据我所知请参阅,可用的 appsync-plugin 不能为AppSync提供完整的离线"功能

I've seen that the serverless framework provides some capabilities to run lambda's locally, but as far as I can see, the available appsync-plugin does not provide full "offline"-functionality for AppSync.

我很想知道其他团队如何进行无服务器开发?每个人都有自己的AWS端设置吗?只是一切的一般开发实例?感谢您的任何意见和建议!

I'm curious to know how other teams do serverless development? Does everybody have their own AWS-side setup? Just a general development-instance of everything? I'm grateful for any opinion and input!

推荐答案

在我们的设置中,每个人都可以拥有自己的个人无服务器阶段来开发其API.我对尝试脱机运行开发感兴趣,但是还没有实现.

In our setup, everyone can have get their own personal serverless stage for developing their API. I'm interested in trying to run development offline but didn't get to that yet.

当我们开始掌握时,我们的CodePipeline将开始构建到集成测试阶段.默认情况下,我们的服务(我们的应用程序划分为多个子域)配置为使用集成测试API.该API对于开发而言应该相对稳定.开发API时,我们可以切换到个人API.

When we push to master, our CodePipeline will start building to our integration test stage. By default, our services (our app is split to many subdomains) are configured to use the integration test API. That API should be relatively stable for development. We can switch to the personal API when developing API.

我们在所有开发阶段都使用通用的DynamoDB表,流和Elasticsearch实例. DynamoDB表和索引是在开发端和生产端通过无服务器部署的,它们是手动维护的.

We use common DynamoDB tables, streams and Elasticsearch instances for all development stages. DynamoDB tables and indexes are deployed with serverless in development side and in production side they are maintained manually.

我们的生产和测试阶段位于单独的AWS帐户中.

Our production and beta stages are in a separate AWS account.

这篇关于如何与AWS AppSync一起开发无服务器团队?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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