SlideShare a Scribd company logo
8
Most read
9
Most read
10
Most read
AWS Lambda
Serverless, event-driven compute service
27.03.2017, AOE Developer Weekly, Julian Kleinhans
Julian Kleinhans
Software Architect @ AOE GmbH
@kj187
What is AWS Lambda
Alternatives
• Azure Functions (Microsoft)
• OpenWhisk (IBM)
• Google Cloud Functions (beta)
Serverless compute service that runs your
code in response to events Introduced by Amazon in
November 2014
First major provider
What means serverless
Serverless
• No infrastructure to manage
• Upload your code
• Lambda handles Capacity, Scaling, Monitoring, Logging, Security patching ...
Events
Event Sources (Event sources that trigger AWS Lambda)
• Amazon S3
• Amazon DynamoDb
• Amazon Kinesis
• Amazon API Gateway (REST API)
• On Demand via SDK
• ...
approx. 16-17 services
Workflow
Changes in data state
Request to endpoints
Changes in resource state
Event source Function Services (anything)
Change/Add data state
Trigger AWS resource
Call HTTP endpoint
Function
Function handler
NodeJS 4.3 & 6.10
Java 8
Python 2.7
C#
ZIP Package
handler.js
node_modules/*
Use Case
1
2
3
4
Store image in S3
Lambda Event Trigger
Create thumbnail
Store thumbnail in S3
Use Case
E-Mail DeskPro Middleware TargetProcess
API Gateway
Create bug ticket
Close ticket
Create ticket Webhook
Event source Lambda
DeskPro -> TargetProcess (fully automated)
Limits
Maximum execution duration per request
=> 300 seconds
Alternative S3 Storage
Lambda function deployment package size (.zip/.jar file)
=> 50 MB
100 concurrent executions
1.000 invokes per second
Increases available via AWS customer service
Costs
1 million requests and
400,000 GB-second of compute time
every month, every customer for free
$0.20 per 1 million requests
($0.0000002 per request)
Never pay for idle
Demo
DEMO
https://github.com/kj187/aws_terraform_templates
Thank you
Any Questions ?

More Related Content

PDF
View & index in SQL
PPTX
AWS Lambda
PPTX
Introduction To AWS & AWS Lambda
PPTX
APACHE KAFKA / Kafka Connect / Kafka Streams
PPTX
Sql subquery
PDF
Autoware Architecture Proposal
PPTX
Databricks for Dummies
PDF
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
View & index in SQL
AWS Lambda
Introduction To AWS & AWS Lambda
APACHE KAFKA / Kafka Connect / Kafka Streams
Sql subquery
Autoware Architecture Proposal
Databricks for Dummies
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...

What's hot (20)

PDF
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
PPTX
AWS Storage - S3 Fundamentals
PPT
Auto Scaling on AWS
PDF
Amazon AWS | What is Amazon AWS | AWS Tutorial | AWS Training | Edureka
PPTX
AWS basics
PDF
Serverless computing with AWS Lambda
PDF
AWS Lambda
PDF
대용량 데이터베이스의 클라우드 네이티브 DB로 전환 시 확인해야 하는 체크 포인트-김지훈, AWS Database Specialist SA...
PDF
마이크로서비스 기반 클라우드 아키텍처 구성 모범 사례 - 윤석찬 (AWS 테크에반젤리스트)
PPTX
AWS IAM and security
PPTX
Microsoft Azure Technical Overview
PPTX
AWS Lambda Tutorial For Beginners | What is AWS Lambda? | AWS Tutorial For Be...
PPTX
AWS - Lambda Fundamentals
PPTX
What is AWS?
PPTX
Azure App Service Architecture. Web Apps.
PDF
Serverless Computing
PDF
Aurora MySQL Backtrack을 이용한 빠른 복구 방법 - 진교선 :: AWS Database Modernization Day 온라인
PPTX
Azure: PaaS or IaaS
PPTX
AWS Lambda Features and Uses
PPTX
글로벌 기업들의 효과적인 데이터 분석을 위한 Data Lake 구축 및 분석 사례 - 김준형 (AWS 솔루션즈 아키텍트)
AWS Lambda Tutorial | Introduction to AWS Lambda | AWS Tutorial | AWS Trainin...
AWS Storage - S3 Fundamentals
Auto Scaling on AWS
Amazon AWS | What is Amazon AWS | AWS Tutorial | AWS Training | Edureka
AWS basics
Serverless computing with AWS Lambda
AWS Lambda
대용량 데이터베이스의 클라우드 네이티브 DB로 전환 시 확인해야 하는 체크 포인트-김지훈, AWS Database Specialist SA...
마이크로서비스 기반 클라우드 아키텍처 구성 모범 사례 - 윤석찬 (AWS 테크에반젤리스트)
AWS IAM and security
Microsoft Azure Technical Overview
AWS Lambda Tutorial For Beginners | What is AWS Lambda? | AWS Tutorial For Be...
AWS - Lambda Fundamentals
What is AWS?
Azure App Service Architecture. Web Apps.
Serverless Computing
Aurora MySQL Backtrack을 이용한 빠른 복구 방법 - 진교선 :: AWS Database Modernization Day 온라인
Azure: PaaS or IaaS
AWS Lambda Features and Uses
글로벌 기업들의 효과적인 데이터 분석을 위한 Data Lake 구축 및 분석 사례 - 김준형 (AWS 솔루션즈 아키텍트)
Ad

Viewers also liked (20)

PDF
Getting started with AWS Lambda and the Serverless Cloud
PDF
AWS AWSome Day - Getting Started Best Practices
PDF
AWS Lambda from the trenches
PDF
How to Become a Thought Leader in Your Niche
PPTX
Difference between-angular js-nodejs
PDF
AWS Innovate 2016 : Opening Keynote - Glenn Gore
PPTX
Javascript as a Platform
PPTX
Serverless Architecture at iRobot
PDF
Serverless Delivery
PPTX
Simplify Cloud Migration to AWS with RISC Network’s Complete App Analysis
PDF
Jaap : node, npm & grunt
PPTX
Derive Insight from IoT data in minute with AWS
PDF
Cloudwatch: Monitoring your AWS services with Metrics and Alarms
PPTX
NodeJS guide for beginners
PDF
Hashiconf AWS Lambda Breakout
PDF
AWS Lambda from the Trenches
PPTX
Jeremy Cowan's AWS user group presentation "AWS Greengrass & IoT demo"
PDF
NodeJS for Beginner
PPTX
Containerless in the Cloud with AWS Lambda
PPTX
A Brief Intro to Scala
Getting started with AWS Lambda and the Serverless Cloud
AWS AWSome Day - Getting Started Best Practices
AWS Lambda from the trenches
How to Become a Thought Leader in Your Niche
Difference between-angular js-nodejs
AWS Innovate 2016 : Opening Keynote - Glenn Gore
Javascript as a Platform
Serverless Architecture at iRobot
Serverless Delivery
Simplify Cloud Migration to AWS with RISC Network’s Complete App Analysis
Jaap : node, npm & grunt
Derive Insight from IoT data in minute with AWS
Cloudwatch: Monitoring your AWS services with Metrics and Alarms
NodeJS guide for beginners
Hashiconf AWS Lambda Breakout
AWS Lambda from the Trenches
Jeremy Cowan's AWS user group presentation "AWS Greengrass & IoT demo"
NodeJS for Beginner
Containerless in the Cloud with AWS Lambda
A Brief Intro to Scala
Ad

Similar to AWS Lambda (7)

PPTX
AWS Lambda
PDF
AWS Community Day Bangkok 2019 - Building & Deploying AWS Lambda with Serverl...
PDF
Big data and serverless - AWS UG The Netherlands
PDF
2016-06 - Design your api management strategy - AWS - Microservices on AWS
PDF
An introduction to serverless architectures (February 2017)
PDF
AWS Lambda 활용의 모든 것! - AWS Summit Seoul 2017
PDF
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
AWS Lambda
AWS Community Day Bangkok 2019 - Building & Deploying AWS Lambda with Serverl...
Big data and serverless - AWS UG The Netherlands
2016-06 - Design your api management strategy - AWS - Microservices on AWS
An introduction to serverless architectures (February 2017)
AWS Lambda 활용의 모든 것! - AWS Summit Seoul 2017
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud

Recently uploaded (20)

PDF
Effective Bad Luck Removal In Sydney.pdf
PDF
Choosing an Entrepreneurial Path Based on Your Personality.pdf
PDF
Resealing and Protecting Outdoor Wood Features Before Summer Peaks.pdf
PPTX
Zulu Airline Systems – Innovative Airline Planning Solutions
PDF
Understanding LA's Zero Waste Initiative
PPTX
Enhancing Wastewater Treatment Efficiency with GO2™ Water Treatment Chlorine ...
PDF
Management Colleges In Delhi Ncr | Galgotias University
PPTX
Driving Accountability The Power of Business Responsibility and Sustainabilit...
PDF
AI Staffing for Startups & Growing Businesses | Rubixe
PDF
Digital marketing strategy slides .pdf
PDF
Expert Medical Coding Services for Faster Reimbursements.pdf
PDF
The Role of Testing and QA in Successful Mobile App Development_Spinx Infotec...
PDF
Secure Your World with Acme Enterprises PDF Sharing.pdf
PPTX
Struggles of Blind Individuals and How We Can Help..pptx
PPT
From India to the World How We Export Eco-Friendly Holi Colours Globally.ppt
PDF
How to Inspect Exterior Paint for Early Signs of Summer Damage.pdf
PDF
Xinzex: A Complete Web Development Guide for Beginners
PDF
The Dark Web’s Front Door: Finding the Real Hidden Wiki
PDF
Legacy Application Modernisation Services.pdf
PDF
Why Should Call Centers Use Inbound Call Tracking in 2025.pdf
Effective Bad Luck Removal In Sydney.pdf
Choosing an Entrepreneurial Path Based on Your Personality.pdf
Resealing and Protecting Outdoor Wood Features Before Summer Peaks.pdf
Zulu Airline Systems – Innovative Airline Planning Solutions
Understanding LA's Zero Waste Initiative
Enhancing Wastewater Treatment Efficiency with GO2™ Water Treatment Chlorine ...
Management Colleges In Delhi Ncr | Galgotias University
Driving Accountability The Power of Business Responsibility and Sustainabilit...
AI Staffing for Startups & Growing Businesses | Rubixe
Digital marketing strategy slides .pdf
Expert Medical Coding Services for Faster Reimbursements.pdf
The Role of Testing and QA in Successful Mobile App Development_Spinx Infotec...
Secure Your World with Acme Enterprises PDF Sharing.pdf
Struggles of Blind Individuals and How We Can Help..pptx
From India to the World How We Export Eco-Friendly Holi Colours Globally.ppt
How to Inspect Exterior Paint for Early Signs of Summer Damage.pdf
Xinzex: A Complete Web Development Guide for Beginners
The Dark Web’s Front Door: Finding the Real Hidden Wiki
Legacy Application Modernisation Services.pdf
Why Should Call Centers Use Inbound Call Tracking in 2025.pdf

AWS Lambda

Editor's Notes

  • #2: Ok, dann will ich euch ein bisschen über Lambda erzählen ...
  • #4: Und zwar, AWS Lambda ist ein Event basierter, zustands- und serverloser Datenverarbeitungsservice, was das genau bedeutet erkläre ich auf den nächsten Folien NEXT Lambda wurde im Nov. 2014 von Amazon auf der re:Invent Konferenz in Las Vegas announced Amazon war zu der Zeit einer der ersten großen Anbieter von serverless compute services. NEXT Um das vielleicht besser einordnen zu können hab ich mal 3 Alternativen rausgesucht
  • #5: Was genau bedeutet jetzt serverless, weil im Grunde genommen steckt doch da immer irgendwo ein Server dahinter Richtig, aber der Unterschied ist, wir müssen uns keine Gedanken über die Infrastruktur oder die Bereitstellung von Servern machen. Das macht in dem Fall alles AWS für uns! Wir laden einfach unseren Code hoch und AWS kümmert sich dann um .... NEXT Und wir ? Wir können uns komplett auf die Business Logik konzentrieren anstatt uns mit der Infrastruktur rumzuschlagen Ja das hört sich jetzt total super, aber, jetzt liegt unser Code da irgendwo rum? Und jetzt ist die Frage wie und wann wird der ausgeführt? Und genau da kommen Events ins Spiel...
  • #6: AWS bietet derzeit ca. 16-17 verschiedene Services an die Events unterstützen. Beispielsweise S3 = Simple Storage Service (PUT, UPDATE, DELETE) DynamoDB, Kinesis und ganz mächtig das API Gateway bei dem man ziemlich einfach serverlose REST APIs erstellen kann Damit kann man das ganze auch von außerhalb von AWS steuern. Auch sehr flexibel ist, das man eine Lambda auch On Demand über das AWS SDK ausführen lassen kann
  • #7: Vom Ablauf her sieht es also so aus das ein Event ausgelöst wird (über die Event Source) das kann wie gesagt durch eine Veränderungen in einem Daten Storage passieren oder durch einen Aufruf eines HTTP Endpunkts oder aber durch ein Ereignis in einem anderen AWS Service, und damit wird dann eine entsprechend konfigurierte Lambda Funktion von uns gestartet die dann irgendeine Logik abarbeitet und darauf hin zB. Daten wieder speichert/ändert, andere AWS Services triggert oder irgendein anderen HTTP Endpunkt zb aufruft
  • #8: Die Function selbst die aus unserer Business Logik besteht, das ist der Code den wir beim Lambda Service hochladen müssen damit er diese bei bestimmten Ereignissen ausführen kann. Derzeit unterstützt werden NodeJS 4.3, seit Ende letzter Woche auch 6.10, Java 8, Python und C# NEXT Wer hier ein bischen experimentel sein will NodeJS bietet child_processes an die es ermöglichen andere binaries auszuführen, das habe ich bereits mal mit Golang erfolgreich probiert. Wer hier gerne mehr zu wissen möchte kann gerne auf mich zukommen, ich hab in GitHub auch noch ein lauffähiges Beispiel rumliegen. NEXT Ok, was Lambda beim deployment von uns nun erwartet wird ist ein ZIP Package. Und wenn wir beim NodeJS Beispiel bleiben dann besteht das aus der JS Datei wo die Funktion drin steckt, und (sofern vorhanden) alle Dependencies (die kann man über eine package.json verwalten und dann per npm install installieren) Das ZIP Package muss man dann im AWS Service hochladen, das kann man manuell machen oder über Tools wie Terraform z.B
  • #9: 1) Als konkretes Beispiel haben wir hier z.B eine Mobile App mit der man Fotos machen kann die dann in einem S3 Bucket gespeichert werden. Von dem Foto wollen wir ebenfalls ein Thumbnail erstellen und auch in einem S3 Bucket ablegen NEXT 2) Also erstellen wir uns eine Lambda und konfigurieren ein entsprechendes Event was ausgelöst wird wenn ein neues Foto im S3 Bucket abgelegt wird NEXT 3) Erstellen in der Funktion dann ein Thumbnail NEXT 4) Und speichern dieses wieder um S3 Storage ab Damit hätten wir dann unseren eigenen kleinen Image Microservice
  • #11: Aber auch bei AWS ist nicht alles grenzenlos, somit gibt es auch hier ein paar Limits Die wichtigsten sind dabei ... ... das die Ausführdauer pro Request maximal nur 5min betragen darf, danach wird die Execution als Fehler abgebrochen NEXT ... und das die Funktion (inkl. aller optionalen Dependencies) max. nur 50MB groß ein darf (Java packages z.B) NEXT aber hier kann man dann ganz bequem einfach auf S3 umsteigen und der Lambda sagen das das Package halt in S3 liegt NEXT 100 concurrent executuons 1000 invokes pro sekunde NEXT Kann beides beim AWS Customer service erhört werden lassen
  • #12: Nennenswert sind noch die Kosten die bei Lambda entstehen „können“ Die Betonung hier liegt auf „können“, den, AWS bietet hier PRO MONAT & pro ACCOUNT 1 Millionen Request (also Executions) und 400.000 GB/s Datenverarbeitungszeit die kostenlos sind NEXT Erst DANACH fallen kosten an und die betragen gerade mal für 1 million requests 20 cents (also $0.0000002 pro request) NEXT Das bedeutet also auch das keine Kosten entstehen wenn es keine requests (trigger Aufrufe) gibt
  • #14: Wenn ihr irgendwelche Fragen habt ? Ansonten DANKE :-)