Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Lambda Layers FTW!
Search
Francesco Lerro
February 12, 2019
Technology
1
940
Lambda Layers FTW!
A technical deep dive into AWS Lambda Layers!
Francesco Lerro
February 12, 2019
Tweet
Share
More Decks by Francesco Lerro
See All by Francesco Lerro
Orchestration VS Choreography in Serverless
flerro
0
89
Serverless architecture patterns
flerro
1
300
A serverless data pipeline for Insurance Telematics
flerro
1
330
AWS ❤ SAM / Serverless On Stage #9
flerro
0
440
Tecnologie Groovy - Seconda Parte
flerro
0
470
Tecnologie Groovy - Prima parte
flerro
0
520
Other Decks in Technology
See All in Technology
Rustで「プリズモイダル法」を利用して「土量計算」をガチでやる
nokonoko1203
1
300
Building Dashboards as a Hobby
egmc
0
370
2024春 注目のWeb系 OSS & SaaS 3選
makies
0
180
MixIT 2024 - Pulumi : Gérer son infra avec son langage de programmation préféré
ju_hnny5
1
120
TechFeed Experts Night#27 〜 フロントエンドフレームワーク最前線 (Svelte)
baseballyama
2
590
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
510
Tellus の衛星データを見てみよう #mf_fukuoka
kongmingstrap
0
270
Gitlab本から学んだこと - そーだいなるプレイバック / gitlab-book
soudai
7
1.3k
JAWS-UG Bedrock Claude Night
yamahiro
3
710
web-application-security
matsuihidetoshi
1
190
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
1
1.7k
認知症フレンドリーテックとスタックチャン
naokiuc
0
240
Featured
See All Featured
The Invisible Side of Design
smashingmag
294
49k
Atom: Resistance is Futile
akmur
260
25k
For a Future-Friendly Web
brad_frost
172
9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
22
1.6k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
Designing the Hi-DPI Web
ddemaree
276
33k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
21
1.9k
YesSQL, Process and Tooling at Scale
rocio
165
13k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
20
1.8k
Building a Modern Day E-commerce SEO Strategy
aleyda
21
6.4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Transcript
AWS Lambda Layers FTW! Serverless On Stage #20 - Milan,
12/02/2019
Working with AWS Lambda? Don’t repeat yourself!
HELLO! I am Francesco Lerro I am a Solution Architect
who loves the Cloud Find me on Twitter @flerro
DEPLOY Code External Library 1 External Library 2 MyFunction 1
data.json Function code Code External Library 1 Custom Module 1 MyFunction 2 data.json Function code Code Custom Module 1 External Library 2 MyFunction 3 data.json Function code Non DRY!
DEPLOY (shared modules) Code MyFunction 1 Function code Code MyFunction
2 Function code Code MyFunction 3 Function code External Library 2 data.json Custom Module 1 External Library 1 MyBundle1
Lambda Layer A collection of arbitrary code, third party libraries
and data that can be referenced by many Lambda functions
Lambda Layer benefits ∎ Enforce separation of concerns ∎ Enable
code reuse between functions ∎ Allow faster deployment, avoiding duplication
Using Lambda Layers 1. Put shared components and data in
a ZIP package 2. Create a new layer version, uploading the ZIP package 3. Reference layer version from a function
Paths Default paths for Lambda Layers unzipped
None
Lambda Layers limits ∎ Up to 5 layers can be
used per function ∎ Max extracted size per layer is 250MB
Lambda Layers access ∎ Shareable across same account, different AWS
accounts or public ∎ When deleted, a layer could not be referenced by newer functions ∎ AWS provides NumPy/SciPy layer for ML application
SAM A SAM template with Lambda and Layer, use SAM
CLI 0.9.0+
DEMO Code available on Github: https://github.com/flerro/lambda-layers-FTW
THANKS! Any questions? Content released under Public Domain Presentation template
by SlidesCarnival