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.1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Lambda Layers FTW!
A technical deep dive into AWS Lambda Layers!
Francesco Lerro
February 12, 2019
More Decks by Francesco Lerro
See All by Francesco Lerro
Playing with serverless building blocks
flerro
0
160
Orchestration VS Choreography in Serverless
flerro
0
390
Serverless architecture patterns
flerro
1
440
A serverless data pipeline for Insurance Telematics
flerro
1
470
AWS ❤ SAM / Serverless On Stage #9
flerro
0
630
Tecnologie Groovy - Seconda Parte
flerro
0
580
Tecnologie Groovy - Prima parte
flerro
0
620
Other Decks in Technology
See All in Technology
個人OSSが、机の上から世界に広がるまでの話
shinyasaita
1
370
事業価値と Engineering 2026年度版
recruitengineers
PRO
45
22k
20260807_第6回_関東kaggler会LT_claw系bot xangiと始める、"寂しくない" kaggle
sugupoko
0
230
TypeScript入門 2026
recruitengineers
PRO
3
500
20分でわかるセキュアAPI
nwiizo
1
200
【CEDEC2026】『Relink』を拡張せよ - 『GRANBLUE FANTASY: Relink - Endless Ragnarok』の開発速度と品質を守るCI運用
cygames
PRO
0
140
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
つくって納得、つかって実感! 大規模言語モデルことはじめ ver2.0
recruitengineers
PRO
4
1.2k
メルカリのグローバルアプリで挑んだ AlloyDB 運用と課題解決の実践記
hatappi
0
240
Cursor Meetup Sapporo - Cursor物語 続編
cocacola917
0
140
Breaking the Seal: Static Deobfuscation of Compiled V8 JavaScript Bytecode Malware
hshrzd
0
670
AI時代の強いチームの作り方
yuukiyo
26
16k
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
247
13k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
370
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
540
4 Signs Your Business is Dying
shpigford
187
22k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
930
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
200
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
460
Thoughts on Productivity
jonyablonski
76
5.3k
HDC tutorial
michielstock
2
790
Deep Space Network (abreviated)
tonyrice
0
250
Navigating Team Friction
lara
192
16k
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