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
970
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
8
Orchestration VS Choreography in Serverless
flerro
0
200
Serverless architecture patterns
flerro
1
330
A serverless data pipeline for Insurance Telematics
flerro
1
360
AWS ❤ SAM / Serverless On Stage #9
flerro
0
500
Tecnologie Groovy - Seconda Parte
flerro
0
490
Tecnologie Groovy - Prima parte
flerro
0
530
Other Decks in Technology
See All in Technology
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
1
16k
Azureの開発で辛いところ
re3turn
0
210
Bring Your Own Container: When Containers Turn the Key to EDR Bypass/byoc-avtokyo2024
tkmru
0
690
コロプラのオンボーディングを採用から語りたい
colopl
2
180
生成AIによるテスト設計支援プロセスの構築とプロセス内のボトルネック解消の取り組み / 20241220 Suguru Ishii
shift_evolve
0
190
最近のSfM手法まとめ - COLMAP / GLOMAPを中心に -
kwchrk
8
1.8k
スケールし続ける事業とサービスを支える組織とアーキテクチャの生き残り戦略 / The survival strategy for Money Forward’s engineering.
moneyforward
0
240
12 Days of OpenAIから読み解く、生成AI 2025年のトレンド
shunsukeono_am
0
1.1k
生成AI × 旅行 LLMを活用した旅行プラン生成・チャットボット
kominet_ava
0
100
20241218_マルチアカウント環境におけるIAM_Access_Analyzerによる権限管理.pdf
nrinetcom
PRO
3
150
Copilotの力を実感!3ヶ月間の生成AI研修の試行錯誤&成功事例をご紹介。果たして得たものとは・・?
ktc_shiori
0
160
SpiderPlus & Co. エンジニア向け会社紹介資料
spiderplus_cb
0
560
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.3k
A designer walks into a library…
pauljervisheath
205
24k
Automating Front-end Workflow
addyosmani
1366
200k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
950
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Practical Orchestrator
shlominoach
186
10k
How GitHub (no longer) Works
holman
312
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