When and when not to use aws lambda functions [clo

2019-09-15 06:33发布

问题:

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:

Pros

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

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

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

  4. IAM Policies are configurable to each lambda function.

  5. Scalable depending on the rate of invocations.

Cons

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

  2. Only popular programming language support.

Conclusion

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