SlideShare a Scribd company logo
1 of 32
λ in Practice
or how i learned to stop worrying and love not having servers
2
@tobyhede
Toby Hede
100%
Technology Lead
Digital Transformation Office
Teh GOvernment
************
3
Background
What is it?
Why λ?
5
——————————————————————————————
All-of-Gov Performance Dashboard
Measure the performance of government services
against metrics defined in the Digital Service
Standard.
6
——————————————————————————————
All-of-Gov Performance Dashboard
Measure the performance of government services
against metrics defined in the Digital Service
Standard.
Drive the continuous improvement of government
services for users and increase government
transparency.
7
——————————————————————————————
Data
๏ Multiple data sources
๏ Disparate data sources
๏ We don’t actually know what they all are yet
๏ We don’t know how much of it we will have
8
Obligatory GIF
9
10
——————————————————————————————
Data
๏ Connect all the moving pieces
๏ Transform data from many different sources
๏ Move fast
๏ Adapt quickly
Architecture
How are we using λ?
12
——————————————————————————————
Caveats
We are just finishing Alpha
Production this week, pending approvals
Going into Beta phase
Expanding our usage of λ
14
YOUR SHIPMENT OF CLOUD HAS ARRIVED
16
17
18
Serverless Framework
Configuration
Environments
Deployment
19
——————————————————————————————
Random Thoughts
Vendor Lock In
Dependencies
Security
Testing
What about other Amazon products and/or services
Zero infrastructure and a surprising amount of configuration
20
——————————————————————————————
Vendor Lock In
• Meh
21
Businesswoman with question marks behind her, hard decision
22
What about vendor lock-in!!!!?
23
Convert to an express function
24
——————————————————————————————
An aside
25
26
27
——————————————————————————————
Security and IAM
• AmazonAPIGatewayAdministrator
• AWSLambdaFullAccess
• AWSLambdaVPCAccessExecutionRole
• ec2:DescribeSecurityGroups
• ec2:DescribeSubnets
• Built-in Serverless Policy
28
——————————————————————————————
Dependencies
• Requires some planning
• Nest packages with npm
• Favour reimplementation of simple helpers rather
then pull in a dependency
29
——————————————————————————————
Testing
• Unit test functions
• If testing a function is hard, you are doing it wrong
• ava is good
• Can run Serverless locally using a plugin
30
——————————————————————————————
What about other AWS products
• Possible for future development
• We’ve played it safe on the database tier
• Some limitations to what Gov can support
• Contenders:
• Kinesis
• Elastic search
31
——————————————————————————————
Configuration
Serverless means replying infrastructure with configuration
Don’t underestimate the complexity
32
100%
@tobyhede
tobyhede.com
************

More Related Content

Viewers also liked

用JavaScript 實踐《軟體工程》的那些事兒!
用JavaScript  實踐《軟體工程》的那些事兒!用JavaScript  實踐《軟體工程》的那些事兒!
用JavaScript 實踐《軟體工程》的那些事兒!
鍾誠 陳鍾誠
 

Viewers also liked (10)

AWS re:Invent 2016: bots + serverless = ❤ (SVR304)
AWS re:Invent 2016: bots + serverless = ❤ (SVR304)AWS re:Invent 2016: bots + serverless = ❤ (SVR304)
AWS re:Invent 2016: bots + serverless = ❤ (SVR304)
 
M.E.L.I.G. Unikernel and Serverless
M.E.L.I.G. Unikernel and ServerlessM.E.L.I.G. Unikernel and Serverless
M.E.L.I.G. Unikernel and Serverless
 
Serverless computing and Function-as-a-Service (FaaS)
Serverless computing and Function-as-a-Service (FaaS)Serverless computing and Function-as-a-Service (FaaS)
Serverless computing and Function-as-a-Service (FaaS)
 
AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)
AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)
AWS re:Invent 2016: Getting Started with Serverless Architectures (CMP211)
 
Serverless
ServerlessServerless
Serverless
 
Serverless - Lunch&Learn CleverToday - Mars 2017
Serverless - Lunch&Learn CleverToday - Mars 2017Serverless - Lunch&Learn CleverToday - Mars 2017
Serverless - Lunch&Learn CleverToday - Mars 2017
 
用JavaScript 實踐《軟體工程》的那些事兒!
用JavaScript  實踐《軟體工程》的那些事兒!用JavaScript  實踐《軟體工程》的那些事兒!
用JavaScript 實踐《軟體工程》的那些事兒!
 
AWS re:Invent 2016: JustGiving: Serverless Data Pipelines, Event-Driven ETL, ...
AWS re:Invent 2016: JustGiving: Serverless Data Pipelines, Event-Driven ETL, ...AWS re:Invent 2016: JustGiving: Serverless Data Pipelines, Event-Driven ETL, ...
AWS re:Invent 2016: JustGiving: Serverless Data Pipelines, Event-Driven ETL, ...
 
用Serverless技術快速開發line聊天機器人
用Serverless技術快速開發line聊天機器人用Serverless技術快速開發line聊天機器人
用Serverless技術快速開發line聊天機器人
 
História da Arte - Pré-história e Antiguidade
História da Arte - Pré-história e AntiguidadeHistória da Arte - Pré-história e Antiguidade
História da Arte - Pré-história e Antiguidade
 

Similar to AWS Lambda in Practice

SIMPLE EXAMPLE A company must decide whether to invest $100 Million.docx
SIMPLE EXAMPLE A company must decide whether to invest $100 Million.docxSIMPLE EXAMPLE A company must decide whether to invest $100 Million.docx
SIMPLE EXAMPLE A company must decide whether to invest $100 Million.docx
edgar6wallace88877
 

Similar to AWS Lambda in Practice (20)

SplunkLive! Stockholm 2015 breakout - Splunk IT Service Intelligence
SplunkLive! Stockholm 2015 breakout - Splunk IT Service IntelligenceSplunkLive! Stockholm 2015 breakout - Splunk IT Service Intelligence
SplunkLive! Stockholm 2015 breakout - Splunk IT Service Intelligence
 
Unlocking the Power of Government Analytics
Unlocking the Power of Government AnalyticsUnlocking the Power of Government Analytics
Unlocking the Power of Government Analytics
 
5 Tips to Breaking Digital Performance Barriers and Building Business Success
5 Tips to Breaking Digital Performance Barriers and Building Business Success5 Tips to Breaking Digital Performance Barriers and Building Business Success
5 Tips to Breaking Digital Performance Barriers and Building Business Success
 
2015 Quality Management System Vendor Benchmark
2015 Quality Management System Vendor Benchmark2015 Quality Management System Vendor Benchmark
2015 Quality Management System Vendor Benchmark
 
The Digital Universe of Tomorrow
The Digital Universe of TomorrowThe Digital Universe of Tomorrow
The Digital Universe of Tomorrow
 
IDC Digital Universe 2014
IDC Digital Universe 2014IDC Digital Universe 2014
IDC Digital Universe 2014
 
Idc digital-universe-2014
Idc digital-universe-2014Idc digital-universe-2014
Idc digital-universe-2014
 
May 2016 calix investor presentation
May 2016 calix investor presentationMay 2016 calix investor presentation
May 2016 calix investor presentation
 
Big Data & Analytics (Conceptual and Practical Introduction)
Big Data & Analytics (Conceptual and Practical Introduction)Big Data & Analytics (Conceptual and Practical Introduction)
Big Data & Analytics (Conceptual and Practical Introduction)
 
Sourcing Market Overview
Sourcing Market OverviewSourcing Market Overview
Sourcing Market Overview
 
What I learned from 5 years of sciencing the crap out of DevOps
What I learned from 5 years of sciencing the crap out of DevOpsWhat I learned from 5 years of sciencing the crap out of DevOps
What I learned from 5 years of sciencing the crap out of DevOps
 
Big Data - Accountability Solutions for Public Sector Programs
Big Data - Accountability Solutions for Public Sector ProgramsBig Data - Accountability Solutions for Public Sector Programs
Big Data - Accountability Solutions for Public Sector Programs
 
Elections Canada
Elections CanadaElections Canada
Elections Canada
 
Gordian Knot Analytics Group Overview
Gordian Knot Analytics Group OverviewGordian Knot Analytics Group Overview
Gordian Knot Analytics Group Overview
 
Elastic{on} - Tracking of events within ING
Elastic{on} - Tracking of events within INGElastic{on} - Tracking of events within ING
Elastic{on} - Tracking of events within ING
 
SIMPLE EXAMPLE A company must decide whether to invest $100 Million.docx
SIMPLE EXAMPLE A company must decide whether to invest $100 Million.docxSIMPLE EXAMPLE A company must decide whether to invest $100 Million.docx
SIMPLE EXAMPLE A company must decide whether to invest $100 Million.docx
 
Performance platform about event 17-6-14
Performance platform about event 17-6-14Performance platform about event 17-6-14
Performance platform about event 17-6-14
 
Enterprise Business Intelligence & Data Warehousing: The Data Quality Conundrum
Enterprise Business Intelligence & Data Warehousing: The Data Quality ConundrumEnterprise Business Intelligence & Data Warehousing: The Data Quality Conundrum
Enterprise Business Intelligence & Data Warehousing: The Data Quality Conundrum
 
Putting data to work
Putting data to workPutting data to work
Putting data to work
 
Google.value.analysis.for.business.growth
Google.value.analysis.for.business.growthGoogle.value.analysis.for.business.growth
Google.value.analysis.for.business.growth
 

More from Toby Hede

More from Toby Hede (8)

Designing for DynamoDB - Serverless Sydney - Feb 2020
Designing for DynamoDB - Serverless Sydney - Feb 2020Designing for DynamoDB - Serverless Sydney - Feb 2020
Designing for DynamoDB - Serverless Sydney - Feb 2020
 
AWS Lamdba with JavaScript
AWS Lamdba with JavaScriptAWS Lamdba with JavaScript
AWS Lamdba with JavaScript
 
An Introduction to Rust Macros
An Introduction to Rust MacrosAn Introduction to Rust Macros
An Introduction to Rust Macros
 
Rails Rescue - Managing Technical Debt in Legacy Applications
Rails Rescue - Managing Technical Debt in Legacy ApplicationsRails Rescue - Managing Technical Debt in Legacy Applications
Rails Rescue - Managing Technical Debt in Legacy Applications
 
MongoDb
MongoDbMongoDb
MongoDb
 
Introduction to Facebook Development
Introduction to Facebook DevelopmentIntroduction to Facebook Development
Introduction to Facebook Development
 
Amazon Web Services
Amazon Web ServicesAmazon Web Services
Amazon Web Services
 
On XML and the Future of the Web
On XML and the Future of the WebOn XML and the Future of the Web
On XML and the Future of the Web
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

AWS Lambda in Practice