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

Pubblicato il: 20 settembre 2020
sul canale di: 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.


In questa pagina del sito puoi guardare il video online AWS | Project | AWS Lambda Layers for Python | How to use Lambda Layers in Lambda Function| Part-5 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Cloud Tech Masters 20 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,917 volte e gli è piaciuto 30 spettatori. Buona visione!