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

Опубликовано: 20 Сентябрь 2020
на канале: Cloud Tech Masters
3,917
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.


На этой странице сайта вы можете посмотреть видео онлайн AWS | Project | AWS Lambda Layers for Python | How to use Lambda Layers in Lambda Function| Part-5 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Cloud Tech Masters 20 Сентябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3,917 раз и оно понравилось 30 зрителям. Приятного просмотра!