SlideShare a Scribd company logo
@srhtcn
The Rocky Path To Migrating
Production Applications To
Serverless Architecture
Serhat Can @srhtcn
Technical Evangelist @OpsGenie
@srhtcn
Disclaimer:
We still love AWS Lambda
Serverless Turkey meetup
Advocate for Serverless tech
Use AWS Lambda in production
A brand-new spinoff: Thundra
@srhtcn
Modern incident management platform for operating always-on services
● Plan and prepare for incidents
● Ensure issues are never missed, and the right people are notified
● Gain insights to improve your operational efficiency
@srhtcn
Engineering grew from 3 to 60 people
@srhtcn
https://twitter.com/kelseyhightower/status/998977286895423489
@srhtcn
https://twitter.com/kelseyhightower/status/998977286895423489
@srhtcn
The promise of AWS Lambda
@srhtcn
OpsGenie’s Serverless journey
2015
Writing small scale
custom integrations
At this point, we started
leveraging AWS Lambda to
help our customer run custom
code
@srhtcn
OpsGenie’s Serverless journey
2015
Writing small scale
custom integrations
At this point, we started
leveraging AWS Lambda to
help our customer run custom
code
First production usage
Started using AWS Lambda
for leveraging async / not
business critical jobs such as
DynamoDB autoscale
2016
@srhtcn
OpsGenie’s Serverless journey
2015
Writing small scale
custom integrations
At this point, we started
leveraging AWS Lambda to
help our customer run custom
code
First production usage
Started using AWS Lambda
for leveraging async / not
business critical jobs such as
DynamoDB autoscale
2016
Service and Incident
Management
A new customer facing
feature running on AWS
Lambda integrated with the
rest of the code base.
2017
@srhtcn
OpsGenie’s Serverless journey
2015
Writing small scale
custom integrations
At this point, we started
leveraging AWS Lambda to
help our customer run custom
code
First production usage
Started using AWS Lambda
for leveraging async / not
business critical jobs such as
DynamoDB autoscale
2016
Service and Incident
Management
A new customer facing
feature running on AWS
Lambda integrated with the
rest of the code base.
2017
A Spinoff: Thundra
Observability for AWS Lambda
2018
@srhtcn
OpsGenie stack
Java 8
@srhtcn
OpsGenie stack
Java 8
AWS services including
“Serverless” DynamoDB, SQS
@srhtcn
@srhtcn
Cold start
Photo by Chris Marquardt on Unsplash
@srhtcn
Cold start, why
https://engineering.opsgenie.com/what-is-different-in-the-serverless-world-b9e0f68de191
@srhtcn
Cold start, when
Memory size
Code size
VPC
Classpath scan
The language choice
@srhtcn
Cold start
https://read.acloud.guru/does-coding-language-memory-or-package-size-affect-cold-starts-of-aws-lambda-a15e26d12c76
@srhtcn
Cold start, the effect
Caring about an operational concern which has nothing to do with you
Frustrated users because of slow response
Paying more money
Timeouts in the calling function
@srhtcn
Cold start, the solutions
Wait for AWS to improve it
Increase memory (and pay more)
Lightweight application framework instead of Spring
Do some smart warm-up
https://medium.com/thundra/dealing-with-cold-starts-in-aws-lambda-a5e3aa8f532
@srhtcn
Scaling
Photo by Vladimir Riabinin on Unsplash
@srhtcn
Functions scale nicely
@srhtcn
Functions scale nicely until they don’t
@srhtcn
Account level concurrent execution limit
Lambda concurrent execution count for non stream based events:
events (or requests) per second * function duration
@srhtcn
Account level concurrent execution limit
Lambda concurrent execution count for non stream based events:
events (or requests) per second * function duration
Hard to deal with peaks in request numbers
Takes time to increase the limit
Functions affect each other’s scalability
@srhtcn
Latency in a third party can bring your whole
system down
https://read.acloud.guru/does-aws-lambda-keep-its-serverless-marketing-promise-of-continuous-scaling-e990114bb379
@srhtcn
Function level concurrent execution limit
Limit the scalability of non-critical functions
Reserved capacity is subtracted from the global limit
@srhtcn
Don’t put your functions in a VPC
unless you have to
You need sufficient IP addresses in your subnet and ENI to scale
https://docs.aws.amazon.com/lambda/latest/dg/vpc.html
Determine the ENI capacity you need:
Concurrent executions * (Memory in GB / 3 GB)
@srhtcn
Use your 6th sense to debug a scaling issue
https://docs.aws.amazon.com/lambda/latest/dg/vpc.html
@srhtcn
Photo by Anna on Unsplash
Observability
@srhtcn
Fixing “it is slow” is harder in AWS Lambda
@srhtcn
Fixing “it is slow” is harder in AWS Lambda
Too many moving pieces
No way to attach an agent
Even how to send the monitoring data is a discussion point
@srhtcn
Determine the latency in different levels
Automatic instrumentation
GC, Thread counts & durations, CPU usage details
Get the stack trace in case of an error and drill down
See logs, traces, and metrics in one view
thundra.ioWhat we needed was
@srhtcn
Event driven
Photo by Ian Froome on Unsplash
@srhtcn
You got an unexpected bill from AWS?
@srhtcn
An incident of
40.000$
@srhtcn
Lessons learned: An incident of 40.000$
Avoid infinite retries
Monitor and alert for pricing (no pricing metric for AWS Lambda)
Think of Cloudwatch cost and sample logs & metrics
@srhtcn
Functions will be triggered more than once.
Design idempotent functions considering the trigger type
@srhtcn
https://www.stackery.io/blog/self-healing-serverless-applications-part-1-of-3/
@srhtcn
Tools can and do help,
but they can't make us care.
Containers Will Not Fix Your Broken Culture (and Other Hard Truths)
https://queue.acm.org/detail.cfm?id=3185224
- Bridget Kromhout
@srhtcn
Thank you!
Serhat Can
@srhtcn

More Related Content

PDF
Cloud Native Data Pipelines
Bill Liu
 
PDF
Machine learning in the physical world by Kip Larson from AWS IoT
Bill Liu
 
PPTX
OpenWhisk: Where Did My Servers Go?
Carlos Santana
 
PPTX
AWS architecture and a human body
Ostap Soroka
 
PPTX
AWS Multiple Account Management
Yihui Xu
 
PDF
Keeping Your Data Close and Your Caches Hotter (Ricardo Ferreira, Confluent) ...
confluent
 
PDF
Choose Right Stream Storage: Amazon Kinesis Data Streams vs MSK
Sungmin Kim
 
PDF
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
HostedbyConfluent
 
Cloud Native Data Pipelines
Bill Liu
 
Machine learning in the physical world by Kip Larson from AWS IoT
Bill Liu
 
OpenWhisk: Where Did My Servers Go?
Carlos Santana
 
AWS architecture and a human body
Ostap Soroka
 
AWS Multiple Account Management
Yihui Xu
 
Keeping Your Data Close and Your Caches Hotter (Ricardo Ferreira, Confluent) ...
confluent
 
Choose Right Stream Storage: Amazon Kinesis Data Streams vs MSK
Sungmin Kim
 
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
HostedbyConfluent
 

What's hot (15)

PDF
3 Ways to Deliver an Elastic, Cost-Effective Cloud Architecture
confluent
 
PDF
AWS Re:Invent 2019 Re:Cap
Chris Fregly
 
PPTX
How to Sell Serverless to Your Colleagues
Subbu Allamaraju
 
PDF
Troubleshooting as Your Kafka Clusters Grow (Krunal Vora, Tinder) Kafka Summi...
confluent
 
PDF
Killing technical debt and reducing costs with Docker
Catalin Jora
 
PDF
Simplified Hybrid Cloud Migration with Confluent and Google Cloud
confluent
 
PPTX
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS User Group - Thailand
 
PDF
Introduction to AWS Lambda with Python
adaplo
 
PDF
Crossing the streams viktor gamov
confluent
 
PDF
Streaming analytics on Google Cloud Platform, by Javier Ramirez, teowaki
javier ramirez
 
PDF
2014 Import.io Data Summit - Including Hadoop/Impala Getting Started Demo
Ian Massingham
 
PPTX
Real time sentiment analysis using twitter stream api & aws kinesis
Armando Padilla
 
PDF
Cloudwatch: Monitoring your Services with Metrics and Alarms
Felipe
 
PDF
AWS Community Day Bangkok 2019 - Hello ClaudiaJS
AWS User Group - Thailand
 
PDF
EDA Meets Data Engineering – What's the Big Deal?
confluent
 
3 Ways to Deliver an Elastic, Cost-Effective Cloud Architecture
confluent
 
AWS Re:Invent 2019 Re:Cap
Chris Fregly
 
How to Sell Serverless to Your Colleagues
Subbu Allamaraju
 
Troubleshooting as Your Kafka Clusters Grow (Krunal Vora, Tinder) Kafka Summi...
confluent
 
Killing technical debt and reducing costs with Docker
Catalin Jora
 
Simplified Hybrid Cloud Migration with Confluent and Google Cloud
confluent
 
AWS Community Day Bangkok 2019 - DevOps Cost Reduction using Jenkins & AWS Sp...
AWS User Group - Thailand
 
Introduction to AWS Lambda with Python
adaplo
 
Crossing the streams viktor gamov
confluent
 
Streaming analytics on Google Cloud Platform, by Javier Ramirez, teowaki
javier ramirez
 
2014 Import.io Data Summit - Including Hadoop/Impala Getting Started Demo
Ian Massingham
 
Real time sentiment analysis using twitter stream api & aws kinesis
Armando Padilla
 
Cloudwatch: Monitoring your Services with Metrics and Alarms
Felipe
 
AWS Community Day Bangkok 2019 - Hello ClaudiaJS
AWS User Group - Thailand
 
EDA Meets Data Engineering – What's the Big Deal?
confluent
 
Ad

Similar to DevOpsDaysRiga 2018: Serhat Can - The Rocky Path to Migrating Production Applications to Serverless Architecture (20)

PDF
Serhat Can- 4 keytakeaways from running serverless on production for 4 years
AWSCOMSUM
 
PDF
Experiences in Architecting & Implementing Platforms using Serverless.pdf
Srushith Repakula
 
PDF
Serverless Architectural Patterns & Best Practices
Daniel Zivkovic
 
PDF
Build and Manage Serverless APIs (APIDays Nordic, May 19th 2016)
3scale
 
PPTX
Machine learning at scale with aws sage maker
PhilipBasford
 
PDF
Phil Basford - machine learning at scale with aws sage maker
AWSCOMSUM
 
PPTX
An introduction to Serverless
Adrien Blind
 
PDF
Top conf serverlezz
Antons Kranga
 
PPTX
Aws architecture problems while being fancy
Goran Kopevski
 
PDF
Cloud Native Data Pipelines (GoTo Chicago 2017)
Sid Anand
 
PDF
Adopting Java for the Serverless world at Serverless Meetup New York and Boston
Vadym Kazulkin
 
PDF
Deploying Serverless Cloud Optical Character Recognition in Support of NASA A...
Chris Shenton
 
PDF
Serverless OCR for NASA EVA: AWS Meetup DC 2017-12-12
Chris Shenton
 
PDF
Serverless Optical Character Recognition in support of Astronaut Safety AWS M...
Chris Shenton
 
PDF
Amf304 optimizing-design-and-e-660cc73d-5c4c-4331-8f59-48cccdc1b7f4-135588426...
Ramprasad Nagaraja
 
PDF
A Technology Backgrounder to Serverless Architecture - A Whitepaper by RapidV...
RapidValue
 
PDF
AWSomeDay Zurich 2018 - How to go serverless
Roman Plessl
 
PDF
DevOps Days Tel Aviv - Serverless Architecture
Antons Kranga
 
PDF
Serverless AWS reInvent 2019 recap
Daniel Zivkovic
 
PPTX
Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez
javier ramirez
 
Serhat Can- 4 keytakeaways from running serverless on production for 4 years
AWSCOMSUM
 
Experiences in Architecting & Implementing Platforms using Serverless.pdf
Srushith Repakula
 
Serverless Architectural Patterns & Best Practices
Daniel Zivkovic
 
Build and Manage Serverless APIs (APIDays Nordic, May 19th 2016)
3scale
 
Machine learning at scale with aws sage maker
PhilipBasford
 
Phil Basford - machine learning at scale with aws sage maker
AWSCOMSUM
 
An introduction to Serverless
Adrien Blind
 
Top conf serverlezz
Antons Kranga
 
Aws architecture problems while being fancy
Goran Kopevski
 
Cloud Native Data Pipelines (GoTo Chicago 2017)
Sid Anand
 
Adopting Java for the Serverless world at Serverless Meetup New York and Boston
Vadym Kazulkin
 
Deploying Serverless Cloud Optical Character Recognition in Support of NASA A...
Chris Shenton
 
Serverless OCR for NASA EVA: AWS Meetup DC 2017-12-12
Chris Shenton
 
Serverless Optical Character Recognition in support of Astronaut Safety AWS M...
Chris Shenton
 
Amf304 optimizing-design-and-e-660cc73d-5c4c-4331-8f59-48cccdc1b7f4-135588426...
Ramprasad Nagaraja
 
A Technology Backgrounder to Serverless Architecture - A Whitepaper by RapidV...
RapidValue
 
AWSomeDay Zurich 2018 - How to go serverless
Roman Plessl
 
DevOps Days Tel Aviv - Serverless Architecture
Antons Kranga
 
Serverless AWS reInvent 2019 recap
Daniel Zivkovic
 
Re:Invent 2019 Recap. AWS User Groups in Spain. Javier Ramirez
javier ramirez
 
Ad

More from DevOpsDays Riga (20)

PDF
DevOpsDaysRiga 2017: Mark Smalley - Kill DevOps
DevOpsDays Riga
 
PPTX
DevOpsDaysRiga 2018: Uldis Karlovs-Karlovskis - DevOpsDays Ignite Karaoke - S...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Juris Puce - GDPR and other security regulation imposed ...
DevOpsDays Riga
 
PPTX
DevOpsDaysRiga 2018: Heather Wild - Keep Yourself Alive -Stopping the effects...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Philipp Krenn - Building Distributed Systems in Distribu...
DevOpsDays Riga
 
PPTX
DevOpsDaysRiga 2018: Antonio Pigna - Put the brAIn into your DevOps workflow
DevOpsDays Riga
 
PPTX
DevOpsDaysRiga 2018: Christina Aldan - Fearing the Robot Overlords
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Jan de Vries - Realising the power of antifragility is l...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Ken Mugrage - DevOps and DevOpsDays - Where it started, ...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Matty Stratton - How Do You Infect Your Organization Wit...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Eric Skoglund, Lars Albertsson - Kubernetes as data plat...
DevOpsDays Riga
 
PPTX
DevOpsDaysRiga 2018: Jon Hall - DevOps in the enterprise: how "swarming" can ...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Stas Zvinyatskovsky - Transformation: how big can you dr...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Joep Piscaer - Reducing inertia with Public Cloud and Op...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Andrey Adamovich - DevOps Transformations: Tools vs Culture
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Thiago de Faria - Chaos while deploying ML and making su...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Anton Arhipov - Build pipelines with TeamCity
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Neil Crawford - Trunk based development, continuous depl...
DevOpsDays Riga
 
PDF
DevOpsDaysRiga 2018: Michiel Rook - Database schema migrations with zero down...
DevOpsDays Riga
 
DevOpsDaysRiga 2017: Mark Smalley - Kill DevOps
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Uldis Karlovs-Karlovskis - DevOpsDays Ignite Karaoke - S...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Anton Babenko - What you see is what you get… for AWS in...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Juris Puce - GDPR and other security regulation imposed ...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Heather Wild - Keep Yourself Alive -Stopping the effects...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Philipp Krenn - Building Distributed Systems in Distribu...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Antonio Pigna - Put the brAIn into your DevOps workflow
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Christina Aldan - Fearing the Robot Overlords
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Jan de Vries - Realising the power of antifragility is l...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Ken Mugrage - DevOps and DevOpsDays - Where it started, ...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Matty Stratton - How Do You Infect Your Organization Wit...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Eric Skoglund, Lars Albertsson - Kubernetes as data plat...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Jon Hall - DevOps in the enterprise: how "swarming" can ...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Stas Zvinyatskovsky - Transformation: how big can you dr...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Joep Piscaer - Reducing inertia with Public Cloud and Op...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Andrey Adamovich - DevOps Transformations: Tools vs Culture
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Thiago de Faria - Chaos while deploying ML and making su...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Anton Arhipov - Build pipelines with TeamCity
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Neil Crawford - Trunk based development, continuous depl...
DevOpsDays Riga
 
DevOpsDaysRiga 2018: Michiel Rook - Database schema migrations with zero down...
DevOpsDays Riga
 

Recently uploaded (20)

PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Doc9.....................................
SofiaCollazos
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 

DevOpsDaysRiga 2018: Serhat Can - The Rocky Path to Migrating Production Applications to Serverless Architecture