本机无服务器vs无服务器Express [英] Native Serverless vs Serverless Express

查看:71
本文介绍了本机无服务器vs无服务器Express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,我正在遵循无服务器堆栈团队编写的指南.他们正在使用React和许多AWS功能,例如lambdaAPI getaway.为了实践它,我用 Serverless 堆栈重写了我以前的 Express 示例之一.

Right now, I am following a guide prepared from Serverless Stack Team. They are using React and lots of AWS features like lambda and API getaway. In order to practice it, I am re-writing one of my old Express example with the Serverless stack.

我还看到了一个名为aws-serverless-express库或工具.该库或工具允许您以serverless形式运行express应用.

I also saw a library or tool called aws-serverless-express. This library or tool allows you to run your express app in a way that serverless form.

这将是一个很奇怪的问题,但是我想知道无服务器本地版本和无服务器快速版本之间的区别.

It will be a weird question, but I was wondering the difference between native serverless build and serverless express.

Cold start已经是缺点.我知道的.除此之外,无服务器快递的消极还是积极的一面是什么?
本机无服务器的消极或积极方面是什么?

Cold start already disadvantages. I am aware of it. Other than this, what will be the negative or positive sides of serverless express?
what will be the negative or positive sides of native serverless?

推荐答案

无服务器快递的缺点:

  1. 这些额外的依赖关系可能导致额外的冷启动时间
  2. 每条路由不能具有单独的细化权限(例如,一条路由访问S3,另一条访问DynamoDB)

优势:

  1. 更少的样板
  2. 避免CloudFormation堆栈中的资源限制

更多信息:

https://github.com/jeremydaly/lambda-api #why-another-web-framework

https://www.jeremydaly.com/build-serverless-api-serverless-aws-lambda-lambda-api/#comment-19036

这篇关于本机无服务器vs无服务器Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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