SlideShare a Scribd company logo
Evolving Applications to
Serverless
25-April-2020
Ankit Sheth
I am Ankit Sheth
Founder, Datavizz
Hello!
@shethankkit
What is
serverless?
Build and run applications without
thinking about servers
Let’s look at the evolution of computing
Physical servers
in
data centers
Virtual
servers in
data centers
Virtual
servers in
the cloud
Each progressive step was better
Physical servers
data centers
Virtual servers
data centers
• Higher utilization
• Faster provisioning speed
• Improved uptime
• Disaster recovery
• Hardware independence
• Trade CAPEX for OPEX
• More scale
• Elastic resources
• Faster speed and agility
• Reduced maintenance
• Better availability and fault
tolerance
Virtual servers
in the cloud
But there are still limitations
Physical servers
data centers
Virtual servers
data centers
• Trade CAPEX for OPEX
• More scale
• Elastic resources
• Faster speed and agility
• Reduced maintenance
• Better availability and fault
tolerance
• Still need to administer
virtual servers
• Still need to manage
capacity and utilization
• Still need to size
workloads
• Still need to manage
availability, fault tolerance
• Still expensive to run
intermittent jobs
Virtual servers
in the cloud
Evolving
to serverless
SERVERLESS
Virtualservers
in the cloud
Physical servers
in data centers
Virtualservers
in data centers
Serverless changes how you deliver
Speeds
up time to
market
Dedicated
time to
innovation
Increases developer
productivity
Eliminates
operational complexity
Chatbots
• Powering
chatbot logic
• Alexa Skills for
Amazon Echo
Common use cases
Web applications
• Static
websites
• Dynamic
web apps
• Packages for
Flask and
Express
Backends
• Apps &
services
• Mobile
• IoT
</>
Media &
Log Processing
• Real-time data
• Streaming
data
Big Data
• MapReduce
• Batch
How to migrate
to serverless?
Monolith Applications
Monolith V/S Microservices
vs
Straightforward Migration?
Webserver
Data AccessService
App service
Visualization
Service
Lambda
function
How do we get there?
Deploy
Develop
Design
Visualization
Service
App Service
Database
Amazon
S3
Amazon
DynamoDB
AWS
Lambda
AmazonAPI
Gateway
• State?
• Compute?
• API?
• Storage?
• Security?
• Managed?
• Estimatedscale?
• Others
Where do we start? Design
Data Access
Service
Web Service
Rough Architecture - Design
Data stored
in Amazon
DynamoDB
Dynamic
content in
AWS Lambda
Amazon
API Gate
way
Browser
Amazon
CloudFront
Amazon
S3
Steps to Follow - Design
• Create a mind map of services
• Start with low risk, non-business critical modules
• Migrate incrementally to a newer stack with enough time for stability
• Services should have clear bounderies
• Every service should have its own data to work upon
How to Develop?
• How to manage codebase?
• Which tools to use?
How to manage codebase?
• Should I have one repo/ one service?
• Or should I have one repo for all my services?
How to start development?
Evolving applications-to-serverless
Evolving applications-to-serverless
Which tools/frameworks to use?
Steps to Follow - Develop
• Stick to the language you have in-house expertise upon
• Equip the developers with Microservices mindset
• Standardise the tools that you would be using for development
• Stick to one framework and evolve your expretise in it.
• Keep the functions simple and "Single-Purposed"
How to Deploy?
Aspects to cover
• Deployment Framework
• CI Tools
• Monitoring
Deployment Frameworks
CI Tools
Monitoring Tools
Tier Spec Monthly Cost
Load
Balancer
1x $18.30
Application
Server
1 X t2 micro $9.52
Database
Server
1 X t2 micro
100 GB
$23.95
Total Monthly $51.77
Tier Spec Monthly Cost
Load
Balancer
1x $18.30
Application
Server
2 X m4 large $121.18
Database
Server
2 X m4 large
100 GB
$198.93
Total Monthly $320.11
“DevelopmentGrade” Stack “Production Grade” Stack
What Does it cost now?
What Does it cost with
Serverless?
Assumption Unit
TotalPages/Day 10
Avg. Size of Page 200 kb
API
Requests/Page
5
Avg. Size of API
Req.
4 Kb
DB Ops Per Req 2 1r/1w
Storage (per
month)
500 kb
Tier Monthly Cost
Cloud Front Data Transfer 0.0051$
Cloud Front Request Pricing 0.0003
S3 Request Pricing 0.00102$
S3 DataTransfer 0.004345$
API GW DataTransfer 0.00054$
Lambda Request Pricing 0.0003
Lambda Duration Cost 0.000312
Dynamo DB IO Pricing 0
Dynamo DB Storage 0.000125
Total Monthly Cost/User $0.017282
Imagine the following daily customer
usage pattern:
Cost Per User/Month:
Thanks!
Any Questions?
You can find us at ahmedabad@serverlessdays.io

More Related Content

PPTX
Cloud: Agility at Scale
PPTX
Moving your share point development to azure
PDF
Introduction to the Typesafe Reactive Platform
PDF
Why Not Public Cloud?
PDF
RDS: Exciting & nerdy things you won't find in the whitepaper
PPTX
Serverless beyond AWS Lambda
PPTX
Chef + Azure = Awesome
PDF
Serverless is the future... or is it?
Cloud: Agility at Scale
Moving your share point development to azure
Introduction to the Typesafe Reactive Platform
Why Not Public Cloud?
RDS: Exciting & nerdy things you won't find in the whitepaper
Serverless beyond AWS Lambda
Chef + Azure = Awesome
Serverless is the future... or is it?

What's hot (17)

PDF
Azure Architecture by P"Fu_27102018
PPTX
Azure Reference Architectures
PPTX
From Zero to Serverless (CoderCruise 2018)
PPTX
Rapid Prototyping for Big Data with AWS
PDF
Continuous Delivery: How RightScale Releases Weekly
PPTX
Azure Dev/Test Labs
PPTX
Microservices, Spring Cloud & Cloud Foundry
PDF
Docker in the Enterprise
PPTX
Serverless architecture: focus on code, performance and costs
PPTX
Running WordPress and MySQL in Azure
PDF
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
PPTX
Leveraging Akamai to Make Your Cloud Transformation Initiatives Successful
PPT
Dave Nielsen - the economically unstoppable cloud
PPTX
Changing the Game with Cloud, Microservices, and DevOps
PPTX
HA With AWS OpsWorks
PDF
Automating Cloud Operations: Tips from Managed Services
PPTX
Deep dive into service fabric after 2 years
Azure Architecture by P"Fu_27102018
Azure Reference Architectures
From Zero to Serverless (CoderCruise 2018)
Rapid Prototyping for Big Data with AWS
Continuous Delivery: How RightScale Releases Weekly
Azure Dev/Test Labs
Microservices, Spring Cloud & Cloud Foundry
Docker in the Enterprise
Serverless architecture: focus on code, performance and costs
Running WordPress and MySQL in Azure
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
Leveraging Akamai to Make Your Cloud Transformation Initiatives Successful
Dave Nielsen - the economically unstoppable cloud
Changing the Game with Cloud, Microservices, and DevOps
HA With AWS OpsWorks
Automating Cloud Operations: Tips from Managed Services
Deep dive into service fabric after 2 years
Ad

Similar to Evolving applications-to-serverless (20)

PDF
Microservices and Serverless for Mega Startups - DevOps IL Meetup
PPTX
Serverless-Computing-The-Future-of-Backend-Development
PDF
Building a serverless app
PPTX
Serverless: The next major shift in cloud computing
PDF
Buzzwords: Microservices, containers and serverless - real life applications ...
PDF
Montréal AWS Users United: Let's go Serverless!
PDF
Dhaval Nagar - ServerlessDays Bengaluru 2023
PPTX
How can your business benefit from going serverless?
PDF
20200522 - How to migrate an existing app to serverless
PPTX
From Zero to Serverless
PDF
"It’s not only Lambda! Economics behind Serverless" at Serverless Architectur...
PDF
Stop calling everything serverless!
PDF
Learning Serverless Design Develop and Deploy with Confidence 1st Edition Jas...
PPTX
Serverless applications
PDF
Introduction to Serverless through Architectural Patterns
PDF
2019 10-21 Java in the Age of Serverless
PDF
Serverless Toronto User Group - Let's go Serverless!
PDF
"It’s not only Lambda! Economics behind Serverless" at JAX Conference in Mai ...
PDF
Serverless 101 in Montreal
PDF
Project Flogo: Serverless Integration, Powered by Flogo and Lambda
Microservices and Serverless for Mega Startups - DevOps IL Meetup
Serverless-Computing-The-Future-of-Backend-Development
Building a serverless app
Serverless: The next major shift in cloud computing
Buzzwords: Microservices, containers and serverless - real life applications ...
Montréal AWS Users United: Let's go Serverless!
Dhaval Nagar - ServerlessDays Bengaluru 2023
How can your business benefit from going serverless?
20200522 - How to migrate an existing app to serverless
From Zero to Serverless
"It’s not only Lambda! Economics behind Serverless" at Serverless Architectur...
Stop calling everything serverless!
Learning Serverless Design Develop and Deploy with Confidence 1st Edition Jas...
Serverless applications
Introduction to Serverless through Architectural Patterns
2019 10-21 Java in the Age of Serverless
Serverless Toronto User Group - Let's go Serverless!
"It’s not only Lambda! Economics behind Serverless" at JAX Conference in Mai ...
Serverless 101 in Montreal
Project Flogo: Serverless Integration, Powered by Flogo and Lambda
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Dropbox Q2 2025 Financial Results & Investor Presentation
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
sap open course for s4hana steps from ECC to s4
Diabetes mellitus diagnosis method based random forest with bat algorithm
Digital-Transformation-Roadmap-for-Companies.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Big Data Technologies - Introduction.pptx
Encapsulation_ Review paper, used for researhc scholars
Reach Out and Touch Someone: Haptics and Empathic Computing

Evolving applications-to-serverless

  • 2. I am Ankit Sheth Founder, Datavizz Hello! @shethankkit
  • 3. What is serverless? Build and run applications without thinking about servers
  • 4. Let’s look at the evolution of computing Physical servers in data centers Virtual servers in data centers Virtual servers in the cloud
  • 5. Each progressive step was better Physical servers data centers Virtual servers data centers • Higher utilization • Faster provisioning speed • Improved uptime • Disaster recovery • Hardware independence • Trade CAPEX for OPEX • More scale • Elastic resources • Faster speed and agility • Reduced maintenance • Better availability and fault tolerance Virtual servers in the cloud
  • 6. But there are still limitations Physical servers data centers Virtual servers data centers • Trade CAPEX for OPEX • More scale • Elastic resources • Faster speed and agility • Reduced maintenance • Better availability and fault tolerance • Still need to administer virtual servers • Still need to manage capacity and utilization • Still need to size workloads • Still need to manage availability, fault tolerance • Still expensive to run intermittent jobs Virtual servers in the cloud
  • 7. Evolving to serverless SERVERLESS Virtualservers in the cloud Physical servers in data centers Virtualservers in data centers
  • 8. Serverless changes how you deliver Speeds up time to market Dedicated time to innovation Increases developer productivity Eliminates operational complexity
  • 9. Chatbots • Powering chatbot logic • Alexa Skills for Amazon Echo Common use cases Web applications • Static websites • Dynamic web apps • Packages for Flask and Express Backends • Apps & services • Mobile • IoT </> Media & Log Processing • Real-time data • Streaming data Big Data • MapReduce • Batch
  • 10. How to migrate to serverless?
  • 13. Straightforward Migration? Webserver Data AccessService App service Visualization Service Lambda function
  • 14. How do we get there? Deploy Develop Design
  • 15. Visualization Service App Service Database Amazon S3 Amazon DynamoDB AWS Lambda AmazonAPI Gateway • State? • Compute? • API? • Storage? • Security? • Managed? • Estimatedscale? • Others Where do we start? Design Data Access Service Web Service
  • 16. Rough Architecture - Design Data stored in Amazon DynamoDB Dynamic content in AWS Lambda Amazon API Gate way Browser Amazon CloudFront Amazon S3
  • 17. Steps to Follow - Design • Create a mind map of services • Start with low risk, non-business critical modules • Migrate incrementally to a newer stack with enough time for stability • Services should have clear bounderies • Every service should have its own data to work upon
  • 18. How to Develop? • How to manage codebase? • Which tools to use?
  • 19. How to manage codebase? • Should I have one repo/ one service? • Or should I have one repo for all my services?
  • 20. How to start development?
  • 24. Steps to Follow - Develop • Stick to the language you have in-house expertise upon • Equip the developers with Microservices mindset • Standardise the tools that you would be using for development • Stick to one framework and evolve your expretise in it. • Keep the functions simple and "Single-Purposed"
  • 26. Aspects to cover • Deployment Framework • CI Tools • Monitoring
  • 30. Tier Spec Monthly Cost Load Balancer 1x $18.30 Application Server 1 X t2 micro $9.52 Database Server 1 X t2 micro 100 GB $23.95 Total Monthly $51.77 Tier Spec Monthly Cost Load Balancer 1x $18.30 Application Server 2 X m4 large $121.18 Database Server 2 X m4 large 100 GB $198.93 Total Monthly $320.11 “DevelopmentGrade” Stack “Production Grade” Stack What Does it cost now?
  • 31. What Does it cost with Serverless? Assumption Unit TotalPages/Day 10 Avg. Size of Page 200 kb API Requests/Page 5 Avg. Size of API Req. 4 Kb DB Ops Per Req 2 1r/1w Storage (per month) 500 kb Tier Monthly Cost Cloud Front Data Transfer 0.0051$ Cloud Front Request Pricing 0.0003 S3 Request Pricing 0.00102$ S3 DataTransfer 0.004345$ API GW DataTransfer 0.00054$ Lambda Request Pricing 0.0003 Lambda Duration Cost 0.000312 Dynamo DB IO Pricing 0 Dynamo DB Storage 0.000125 Total Monthly Cost/User $0.017282 Imagine the following daily customer usage pattern: Cost Per User/Month:
  • 32. Thanks! Any Questions? You can find us at ahmedabad@serverlessdays.io