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
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
Playing with serverless building blocks
flerro
0
43
Orchestration VS Choreography in Serverless
flerro
0
250
Serverless architecture patterns
flerro
1
360
A serverless data pipeline for Insurance Telematics
flerro
1
380
AWS ❤ SAM / Serverless On Stage #9
flerro
0
530
Tecnologie Groovy - Seconda Parte
flerro
0
520
Tecnologie Groovy - Prima parte
flerro
0
560
Other Decks in Technology
See All in Technology
2025/6/21 日本学術会議公開シンポジウム発表資料
keisuke198619
2
360
CIでのgolangci-lintの実行を約90%削減した話
kazukihayase
0
280
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
12k
成立するElixirの再束縛(再代入)可という選択
kubell_hr
0
290
マルチテナント+マルチプロダクト SaaS への AI Agent の組み込み方
kworkdev
PRO
2
350
活きてなかったデータを活かしてみた話 / Shirokane Kougyou vol 19
sansan_randd
1
340
キャディでのApache Iceberg, Trino採用事例 -Apache Iceberg and Trino Usecase in CADDi--
caddi_eng
0
140
データ戦略部門 紹介資料
sansan33
PRO
1
3.2k
新規プロダクト開発、AIでどう変わった? #デザインエンジニアMeetup
bengo4com
0
460
In Praise of "Normal" Engineers (LDX3)
charity
2
960
Perk アプリの技術選定とリリースから1年弱経ってのふりかえり
stomk
0
100
Workflows から Agents へ ~ 生成 AI アプリの成長過程とアプローチ~
belongadmin
3
160
Featured
See All Featured
Designing Experiences People Love
moore
142
24k
How to Ace a Technical Interview
jacobian
276
23k
It's Worth the Effort
3n
184
28k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
53k
Code Reviewing Like a Champion
maltzj
524
40k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Faster Mobile Websites
deanohume
307
31k
VelocityConf: Rendering Performance Case Studies
addyosmani
329
24k
Embracing the Ebb and Flow
colly
86
4.7k
The Language of Interfaces
destraynor
158
25k
RailsConf 2023
tenderlove
30
1.1k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
16
920
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