AWS | Project | AWS Lambda Layers for Python | How to use Lambda Layers in Lambda Function| Part-5

Published: 20 September 2020
on channel: Cloud Tech Masters
3,937
30

https://github.com/cloudtechmasters/p...
Lambda layers allow us to share code among lambda functions. We just have to upload the layer once and reference it in any lambda function.
The code in a layer could be anything. It could be dependencies, configurations, helper functions i.e. Logging, Recording metrics, etc…
We can link up-to five lambda layers per function where one of that can optionally be a custom runtime e.g. Python, Nodejs, etc.. However adding your custom runtime is not the most frequent use-case for lambda layers but sharing code across your serverless microservices.

The main purpose of a lambda layer is to avoid duplicate codes across many lambdas thereby promote separation of concerns design principle.
Before lambda layers, developers used to either duplicate common code in every lambda function or create local npm packages and refer them in lambdas. Now with lambda layers, you can securely share code among your lambda functions in the same AWS account, cross-accounts or in public.


On this page of the site you can watch the video online AWS | Project | AWS Lambda Layers for Python | How to use Lambda Layers in Lambda Function| Part-5 with a duration of hours minute second in good quality, which was uploaded by the user Cloud Tech Masters 20 September 2020, share the link with friends and acquaintances, this video has already been watched 3,937 times on youtube and it was liked by 30 viewers. Enjoy your viewing!