何时以及何时不使用AWS Lambda函数 [英] When and when not to use aws lambda functions

查看:101
本文介绍了何时以及何时不使用AWS Lambda函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对无服务器架构有一个大致的了解. 我想知道与以前常用的体系结构相比,使用这种体系结构的顶级专业人士和专业人士有哪些优势.

I have a general understanding of serverless architecture. I was wondering what are the top pro's and con's using this architecture compared to the previous generally used architectures.

推荐答案

专业人士

  1. 仅在事件触发VS期间使Lambda函数调用,以使实例空闲一段合理的时间.

  1. Invoke Lambda Functions only during event triggering VS keeping Instance(s) idle for a reasonable amount of time.

仅为要使用的内容付费.VS为运行中的空闲实例付费.

Pay only for what you are going to use VS pay for the running idle instance.

轻松与其他流行的AWS服务集成,例如API网关,S3,SNS,CloudTrail等.

Easily Integrate with other popular AWS Services e.g API Gateway,S3 ,SNS,CloudTrail etc.

IAM策略可以配置给每个lambda函数.

IAM Policies are configurable to each lambda function.

可扩展,取决于调用率.

Scalable depending on the rate of invocations.

缺点

  1. 到目前为止,仅支持5分钟的有限RAM,因此不支持繁重而复杂的处理.

  1. Only 5 minute with finite RAM is supported as of now ,so not for heavy and complex processing.

仅流行的编程语言支持.

Only popular programming language support.

结论

是否使用lambda取决于您的用例!

It depends on your use-case as to whether use lambda or not !

这篇关于何时以及何时不使用AWS Lambda函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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