SlideShare a Scribd company logo
Lessons learned while going Serverless
in production
Mohamed Labouardy - Foxintelligence
Mohamed Labouardy
Lead DevOps Engineer/Software Engineer
Founder of Komiser - https://komiser.io
Open Source contributor: Docker, Jenkins, Telegraf, etc
DevSecOps Evangelist
@mlabouardy
https://labouardy.com
Detect Potential Cost Savings on Public Cloud
+2K stars +185K downloads
“Stay under budget by uncovering hidden
costs, monitoring increases in spend, and
making impactful changes based on custom
recommendations.”
https://komiser.io
How we do it ?
Millions of real online
transaction emails
anonymized and
processed in real time
from a panel of 2.5M
consumers
DATA ACQUISITION &
COLLECTION
Billions of datapoints
processed, cleaned and
enriched through
machine learning,
scrapping, and blending
DATA PROCESSING
& ENRICHMENT
Business acumen and
analytical skills combined
to provide
game-changing insights
to our clients on an
intuitive platform
DATA ANALYSIS
& VISUALIZATION
Lessons learned while going serverless in production
Platform as Service - PaaS
Lessons learned while going serverless in production
Foxintelligence Platform Statistics
Foxintelligence Platform Statistics
CI/CD for Dockerized Microservices
Serverless Hidden Costs
Serverless Functions & Dockerized Microservices
10%
Tiny part of our architecture
Lessons learned while going serverless in production
Foxintelligence Platform Statistics
AWS Lambda AWS EKS API Gateway ElasticSearch
+2B Invocations +5K Containers +80M Requests +5TB of Logs
Lessons learned while going serverless in production
Single Page Applications
Monoliths vs Nanoservice
GET
POST
DELETE
GET
POST
DELETE
Testing
-
● SAM Local for testing locally
● Sandbox account for post-integrations tests
○ Best way to test is on the AWS infrastructure itself
● A/B testing with alias and weighted versions
● Performance testing for memory allocation
○ Apache benchmark
● Quality, unit & security tests included on CI/CD
AWS Lambda Power Tuning
Deployment Framework
● CloudFormation extension optimized for Serverless
● Supports anything CloudFormation supports
● Infrastructure as Code
CI/CD for Lambda based Applications
Gitflow Branching
master
preprod
develop
merge
feature/A
feature/B
merge
merge
merge
v1.0.0
hotfix
merge
v1.0.1
merge
Production
=
Staging
=
Sandbox
=
CI/CD for Lambda based Applications
CI/CD for Lambda based Applications
Jenkinsfile
Dockerfile
Audit dependencies to keep bundle sizes small
CI/CD for Lambda based Applications
Debugging & Troubleshooting
Near Real Time Monitoring
Security
● Enable traceability
● Use most-restrictive permissions when setting IAM policies
● Protect secrets in transit and at rest
○ SSM Parameter Store, KMS
○ Vault
● Apply security at all layers
○ Code reviews, versioning
● Inject security and compliance into CI/CD
○ Dependency checks CVE/CVSE
○ Static/Dynamic analysis
Cold Start vs Warm Start
● Factors which increase the cold-start time:
○ Runtime environment
○ Memory size
○ Bundle size
○ VPC
● Solutions:
○ Programming Language
○ Warm-up
○ AWS Hyperplane
Cold Start vs Warm Start
Caching and Reuse
Best Practices Connecting from AWS Lambda - MongoDB Atlas
context.callbackWaitsForEmptyEventLoop=false
Serverless Hidden Costs
“Memory allocation can make a big difference in your
Lambda function cost. Too much allocated memory
and you’ll overpay. Too little and your function will be
at risk of failing. Therefore, you want to keep a healthy
balance when it comes to memory allocation.”
Cloudwatch Logs eating up money
Key Takeaways
● Serverless or Containers? Why not both
● Be aware of Serverless hidden costs
● Start simple and iterate
● Adopt agile mindset
● Follow AWS best practices
● Share what you learn
@mlabouardy
Follow me on Medium - @mlabouardy
Lessons learned while going serverless in production

More Related Content

PDF
Identify potential cost savings on public cloud
PDF
Lessons learned while going serverless in production
PDF
Lessons learned while going Serverless in production
PDF
CI/CD for Serverless Applications on AWS
PDF
Fully Automated and Secure CI/CD Pipeline for Go based Applications
PDF
Cloud Native Jenkins Deployment in Azure
PDF
DockerCon SF 2015: Faster, Cheaper, Safer
PDF
AWS Community Day Bangkok 2019 - Hello ClaudiaJS
Identify potential cost savings on public cloud
Lessons learned while going serverless in production
Lessons learned while going Serverless in production
CI/CD for Serverless Applications on AWS
Fully Automated and Secure CI/CD Pipeline for Go based Applications
Cloud Native Jenkins Deployment in Azure
DockerCon SF 2015: Faster, Cheaper, Safer
AWS Community Day Bangkok 2019 - Hello ClaudiaJS

What's hot (20)

PDF
DockerCon SF 2015 : Reliably shipping containers in a resource rich world usi...
PPTX
Running Azure PaaS Anywhere using Kubernetes
PPT
Boston Cloud Foundry Meetup 5-22-14
PDF
Microservices application deployment with docker
PDF
AWS Community Day Bangkok 2019 - Dev Ops Philosophy Increase Productivity
PDF
Ricardo Fiel - Microsoft - OSL19
PDF
Terrascan - Cloud Native Security Tool
PPT
Cloud connected cross platform apps in visual studio
PDF
Net Conf Israel - Intro & Building Cloud Native Apps with .NET Core 3.0 and K...
PPTX
Launch It With Docker
PDF
Sergio Seabra - Red Hat - OSL19
PDF
DockerCon SF 2015: Resilient Routing and Discovery
PDF
Docker Overview
PDF
56k.cloud intro and pitch deck
PDF
AWS Community Day - Amy Negrette - Gateways to Gateways
PDF
K8sfor dev parisoss-summit-microsoft-5-decembre-short
PDF
Bringing swift to cloud
PDF
Francisco Javier Ramirez Urea - Hopla - OSL19
PPTX
Build 2016 - B829 - Project Centennial: Bringing Existing Desktop Application...
PDF
SWIFTly, Go Cloud!! - Swift@IBM
DockerCon SF 2015 : Reliably shipping containers in a resource rich world usi...
Running Azure PaaS Anywhere using Kubernetes
Boston Cloud Foundry Meetup 5-22-14
Microservices application deployment with docker
AWS Community Day Bangkok 2019 - Dev Ops Philosophy Increase Productivity
Ricardo Fiel - Microsoft - OSL19
Terrascan - Cloud Native Security Tool
Cloud connected cross platform apps in visual studio
Net Conf Israel - Intro & Building Cloud Native Apps with .NET Core 3.0 and K...
Launch It With Docker
Sergio Seabra - Red Hat - OSL19
DockerCon SF 2015: Resilient Routing and Discovery
Docker Overview
56k.cloud intro and pitch deck
AWS Community Day - Amy Negrette - Gateways to Gateways
K8sfor dev parisoss-summit-microsoft-5-decembre-short
Bringing swift to cloud
Francisco Javier Ramirez Urea - Hopla - OSL19
Build 2016 - B829 - Project Centennial: Bringing Existing Desktop Application...
SWIFTly, Go Cloud!! - Swift@IBM
Ad

Similar to Lessons learned while going serverless in production (20)

PDF
InterConnect 2015: 3962 Docking DevOps
PDF
IBM Think 2020 Openshift on IBM Z and LinuxONE
PDF
Elevating your Continuous Delivery Strategy Above the Rolling Clouds
PDF
D-DAY 2015 Hybrid Cloud IBM
PDF
Accelerate Digital Transformation with IBM Cloud Private
PDF
GCP Meetup #3 - Approaches to Cloud Native Architectures
PPTX
fiu-cloud-hackathon-lec1-v6
PDF
An architect’s guide to leveraging your incumbency
PDF
How do you deliver your applications to the cloud?
PPT
Java Development on Bluemix
PDF
Blue mix
PPTX
Achieving scalability & speed with IaaS
PDF
Solving enterprise challenges through scale out storage & big compute final
PDF
Bluemix DevOps Meetup
PPTX
Google Cloud Fundamentals by CloudZone
PDF
CloudDesignPatterns
PDF
Dockercon eu tour 2015 - Devoxx Casablanca
PDF
Containerize, PaaS, or Go Serverless!?
PDF
135 . Haga el deploy de su aplicación en minutos y en cualquier lenguaje con ...
PDF
Containers vs serverless - Navigating application deployment options
InterConnect 2015: 3962 Docking DevOps
IBM Think 2020 Openshift on IBM Z and LinuxONE
Elevating your Continuous Delivery Strategy Above the Rolling Clouds
D-DAY 2015 Hybrid Cloud IBM
Accelerate Digital Transformation with IBM Cloud Private
GCP Meetup #3 - Approaches to Cloud Native Architectures
fiu-cloud-hackathon-lec1-v6
An architect’s guide to leveraging your incumbency
How do you deliver your applications to the cloud?
Java Development on Bluemix
Blue mix
Achieving scalability & speed with IaaS
Solving enterprise challenges through scale out storage & big compute final
Bluemix DevOps Meetup
Google Cloud Fundamentals by CloudZone
CloudDesignPatterns
Dockercon eu tour 2015 - Devoxx Casablanca
Containerize, PaaS, or Go Serverless!?
135 . Haga el deploy de su aplicación en minutos y en cualquier lenguaje con ...
Containers vs serverless - Navigating application deployment options
Ad

Recently uploaded (20)

PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Cloud computing and distributed systems.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Electronic commerce courselecture one. Pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Big Data Technologies - Introduction.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The AUB Centre for AI in Media Proposal.docx
Cloud computing and distributed systems.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Electronic commerce courselecture one. Pdf
Machine learning based COVID-19 study performance prediction
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology

Lessons learned while going serverless in production