SlideShare a Scribd company logo
SERVERLESS LOGGING WITH
ELK
Edoardo Paolo Scalafiotti - Software Engineer @ Sainsbury’s
Serverless Logging with AWS Lambda and the Elastic Stack
About me
Go, NodeJS
SPAs, WebComponents
Material Design
Serverless Architecture
Microservices
Machine Learning
FabLab, Meetups
Agenda
OVERVIEW
WHY SERVERLESS?
CHALLENGES
USE CASES
DEMO
Q & A
WHAT IS SERVERLESS?
TL;DR
FaaS is about running back end code without
managing your own server systems or your own
server applications
applications that run in stateless compute
containers that are event-triggered,
ephemeral and fully managed by a 3rd party
● 2 overlapping areas: BaaS and PaaS
● run code without provisioning or managing
servers
● horizontal scaling is completely automatic,
elastic, and managed by the provider
● responds to triggers
Serverless Logging with AWS Lambda and the Elastic Stack
WHY SHOULD WE CARE?
serverless is
HOT!
Typical servers in business and enterprise data
centers deliver between 5 and 15 percent of
their maximum computing output on average
over the course of the year
● Reduced operational cost
● Good with irregular, high spike traffic that
cannot be handled by auto-scaling
● Promotes best coding practises
WHAT ARE THE CHALLENGES?
TL;DR
not for the faint-hearted... at the moment
● Ugly hacks for keeping the function alive
● Vendor lock-in
● Unit testing is ok, integration... another story
● Repetition of logic
● Concurrent limit
● Logging, Monitoring and Debugging
USE CASES
USE WISELY
FaaS, containers and VMs are not enemies
FAAS is seen as a better choice for
event-driven apps with few event types per
application component,
while CONTAINERS are seen as a better choice
for synchronous-request driven components
with many entry points
VM Containers Serverless
Configure
machines,
storage,
networking and
OS
Run servers,
configure
applications and
control scaling
Run my code
when it’s
needed
Use cases:
● Real-time file processing (ingestion)
● Real-time stream processing (mkt. data)
● Extract, Transform, Load
● IoT Backends
● Mobile Backends
● RESTful APIs
● Open Source alternative: IBM’s OpenWhisk
● API Orchestration: serverless.com and
claudia.js
● Multiple PL support: Apex
● Logging and monitoring: ELK
LET’S GET TO THE CODE...
THE MISSION
...is to monitor a set of Lambda-based
functions that generates
Game Of Thrones plot points
Serverless Logging with AWS Lambda and the Elastic Stack
DEMO
github.com/edoardo849/lot

More Related Content

What's hot (19)

PPT
Matthew Lewter - Demystified
Infusionsoft
 
PPTX
Requirement and Test for Continuous Delivery - Customer in focus at Scania Co...
Jonatan Mossberg
 
PDF
Embrace DevOps: Delivery Value with Puppet Automation
Navin Kumaran
 
PDF
Sage ERP Solutions PaperlessPLUS
Kerri Davies
 
PPTX
2 Bm Spinifex It Presentation 2012 Linkedin
SevalEte
 
PPTX
Location-independent SharePoint
Riverbed Technology
 
PDF
Implementing PLM in the Fast-Paced, Innovation Driven Prepared Foods Industry
Aras
 
PDF
SAP & Mendix - a piece of cake?
Wim Snoep
 
PPTX
Automation anywhere
abinayaabi32
 
PPTX
Accelerating Time-to-Value with SAP Rapid Deployment Solutions for Ariba
SAP Ariba
 
PDF
2309 sap enterprise architecture in the era of sap hana, infrastructure, plat...
Dao Van Hang
 
PPTX
SplunkLive! Utrecht 2016 - Exact
Splunk
 
PDF
Tips on Moving from Sage 300 Financial Reporter to Sage Intelligence
Net at Work
 
PDF
Self-Serve Marketing at VMware with Request Portals
Atlassian
 
PPTX
What is OutSystems?
Metizsoft Solutions Private Limited
 
PDF
Document Management: A Key to the Mobile Workforce
Net at Work
 
PDF
Custom code management & tools
Timo_John
 
PDF
Batched To Perfection: Modeling & Solving Business Problems With Apache Spark
Eliav Lavi
 
PPTX
DOES SFO 2016 - Avan Mathur - Planning for Huge Scale
Gene Kim
 
Matthew Lewter - Demystified
Infusionsoft
 
Requirement and Test for Continuous Delivery - Customer in focus at Scania Co...
Jonatan Mossberg
 
Embrace DevOps: Delivery Value with Puppet Automation
Navin Kumaran
 
Sage ERP Solutions PaperlessPLUS
Kerri Davies
 
2 Bm Spinifex It Presentation 2012 Linkedin
SevalEte
 
Location-independent SharePoint
Riverbed Technology
 
Implementing PLM in the Fast-Paced, Innovation Driven Prepared Foods Industry
Aras
 
SAP & Mendix - a piece of cake?
Wim Snoep
 
Automation anywhere
abinayaabi32
 
Accelerating Time-to-Value with SAP Rapid Deployment Solutions for Ariba
SAP Ariba
 
2309 sap enterprise architecture in the era of sap hana, infrastructure, plat...
Dao Van Hang
 
SplunkLive! Utrecht 2016 - Exact
Splunk
 
Tips on Moving from Sage 300 Financial Reporter to Sage Intelligence
Net at Work
 
Self-Serve Marketing at VMware with Request Portals
Atlassian
 
Document Management: A Key to the Mobile Workforce
Net at Work
 
Custom code management & tools
Timo_John
 
Batched To Perfection: Modeling & Solving Business Problems With Apache Spark
Eliav Lavi
 
DOES SFO 2016 - Avan Mathur - Planning for Huge Scale
Gene Kim
 

Viewers also liked (20)

PDF
Docker Swarm Meetup (15min lightning)
Mike Goelzer
 
PDF
AWS Chicago user group meetup on June 24, 2014
CloudCamp Chicago
 
PDF
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
Animesh Singh
 
DOCX
Selma_CV1
Selma Elsaeed
 
PDF
Automating interactions with Zabbix (Raymond Kuiper / 12-02-2015)
Nederlandstalige Zabbix Gebruikersgroep
 
PDF
Distributed cat herding
Jilles van Gurp
 
PDF
AWS re:Invent 2014 | (ARC202) Real-World Real-Time Analytics
Socialmetrix
 
DOCX
Resume -Resume -continous monitoring
Tony Kenny
 
PPTX
Mindmappen
yperlaan
 
PPTX
EVOLVE'16 | Enhance | Gordon Pike | Rev Up Your Marketing Engine
Evolve The Adobe Digital Marketing Community
 
PDF
AWS Cost Visualizer
Institut Teknologi Bandung
 
PPTX
Hangul
stepupias
 
PDF
Docker Swarm: Docker Native Clustering
Docker, Inc.
 
PDF
Microservices Tracing with Spring Cloud and Zipkin
Marcin Grzejszczak
 
PPTX
Using a Canary Microservice to Validate the Software Delivery Pipeline
XebiaLabs
 
PPTX
Turnkey Riak KV Cluster
Joe Olson
 
PDF
Catálogo Elk Sport 2016 2017
Elk Sport
 
PDF
B2B Digital Transformation - Case Study
Divante
 
PPTX
Acts 6:1-7 ~ Organic Growth of the Early Church (pt. 1)
Laura Zielke
 
ODP
Docker for PHP Developers - Madison PHP 2017
Chris Tankersley
 
Docker Swarm Meetup (15min lightning)
Mike Goelzer
 
AWS Chicago user group meetup on June 24, 2014
CloudCamp Chicago
 
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
Animesh Singh
 
Selma_CV1
Selma Elsaeed
 
Automating interactions with Zabbix (Raymond Kuiper / 12-02-2015)
Nederlandstalige Zabbix Gebruikersgroep
 
Distributed cat herding
Jilles van Gurp
 
AWS re:Invent 2014 | (ARC202) Real-World Real-Time Analytics
Socialmetrix
 
Resume -Resume -continous monitoring
Tony Kenny
 
Mindmappen
yperlaan
 
EVOLVE'16 | Enhance | Gordon Pike | Rev Up Your Marketing Engine
Evolve The Adobe Digital Marketing Community
 
AWS Cost Visualizer
Institut Teknologi Bandung
 
Hangul
stepupias
 
Docker Swarm: Docker Native Clustering
Docker, Inc.
 
Microservices Tracing with Spring Cloud and Zipkin
Marcin Grzejszczak
 
Using a Canary Microservice to Validate the Software Delivery Pipeline
XebiaLabs
 
Turnkey Riak KV Cluster
Joe Olson
 
Catálogo Elk Sport 2016 2017
Elk Sport
 
B2B Digital Transformation - Case Study
Divante
 
Acts 6:1-7 ~ Organic Growth of the Early Church (pt. 1)
Laura Zielke
 
Docker for PHP Developers - Madison PHP 2017
Chris Tankersley
 
Ad

Similar to Serverless Logging with AWS Lambda and the Elastic Stack (20)

PDF
Serverless Logging Architecture
Narendran R
 
PPTX
Introduction To Serverless Architecture
Ben Sherman
 
PDF
Serverless Architecture
Knoldus Inc.
 
PDF
The future will be Serverless (FrontConf Munich 2017)
Luciano Mammino
 
PDF
Serverless 101 in Montreal
Aaron Williams
 
PDF
Serverless architecture
vipin kumar
 
PDF
Journey to the cloud, the why and how of serverless
Yan Cui
 
PDF
Who needs containers in a serverless world
Matthias Luebken
 
PDF
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
Ludovic Piot
 
PDF
"Node.js and Serverless" Viacheslav Panevskyi
Julia Cherniak
 
PPTX
An introduction to Serverless
Adrien Blind
 
PDF
Serverless is the future... or is it?
Paul Johnston
 
PDF
Serverless brewbox
Lino Telera
 
PPTX
Serverless Architecture in application development - 7 modern trends every IT...
Ibrahim Muhammadi
 
PPTX
Docker Serverless
Brian Christner
 
PDF
The Rise of Serverless Architectures
Benny Bauer
 
PDF
Serverless Architectures - Where have all the servers gone?
Nane Kratzke
 
PDF
Serhat Can- 4 keytakeaways from running serverless on production for 4 years
AWSCOMSUM
 
PDF
It's a Serverless World
Eran Stiller
 
PDF
Serverless computing
Phuc Nguyen
 
Serverless Logging Architecture
Narendran R
 
Introduction To Serverless Architecture
Ben Sherman
 
Serverless Architecture
Knoldus Inc.
 
The future will be Serverless (FrontConf Munich 2017)
Luciano Mammino
 
Serverless 101 in Montreal
Aaron Williams
 
Serverless architecture
vipin kumar
 
Journey to the cloud, the why and how of serverless
Yan Cui
 
Who needs containers in a serverless world
Matthias Luebken
 
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
Ludovic Piot
 
"Node.js and Serverless" Viacheslav Panevskyi
Julia Cherniak
 
An introduction to Serverless
Adrien Blind
 
Serverless is the future... or is it?
Paul Johnston
 
Serverless brewbox
Lino Telera
 
Serverless Architecture in application development - 7 modern trends every IT...
Ibrahim Muhammadi
 
Docker Serverless
Brian Christner
 
The Rise of Serverless Architectures
Benny Bauer
 
Serverless Architectures - Where have all the servers gone?
Nane Kratzke
 
Serhat Can- 4 keytakeaways from running serverless on production for 4 years
AWSCOMSUM
 
It's a Serverless World
Eran Stiller
 
Serverless computing
Phuc Nguyen
 
Ad

Recently uploaded (20)

PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PPTX
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
PPTX
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PPTX
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
PPTX
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
PPT
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
PPTX
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
PPTX
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
PPTX
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
PPT
introductio to computers by arthur janry
RamananMuthukrishnan
 
PPTX
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
PPTX
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
PDF
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
PPTX
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
PDF
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
PPTX
internet básico presentacion es una red global
70965857
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
04 Output 1 Instruments & Tools (3).pptx
GEDYIONGebre
 
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
introductio to computers by arthur janry
RamananMuthukrishnan
 
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
Azure_DevOps introduction for CI/CD and Agile
henrymails
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
Orchestrating things in Angular application
Peter Abraham
 
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
internet básico presentacion es una red global
70965857
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 

Serverless Logging with AWS Lambda and the Elastic Stack

Editor's Notes

  • #2: This talk is divided in 2: Introduction on What is Serverless, Serverless logging with ELK, demo in NodeJS and GOlang
  • #3: To summerize, this talk is about why I think that ELK is a good solution - not the only one… - for monitoring logs and metrics for Serverless
  • #6: When we talk about serverless we are mainly talking about AWS’ Lambda, which is the more mature solution out there, released in 2014. Other vendors are coming with similar solutions like: Google Cloud Functions (Alpha) Azure Functions PL support: Lambda: Python, Java (slow) and NodeJS Google Cloud: NodeJS Azure: Javascript, C#, Python, PHP We’ll talk about Lambda
  • #17: No offline testing Concurrent limit is 100 functions, then queuing / throttling happens
  • #19: There is the perception that VMs, Containers and Serverless are equivalent alternatives Although they represent higher layers of abstraction VM abstracts the hardware Container the OS Serverless the language runtime They are suited for different use cases. This is about having more choices, not the next hot thing