SlideShare a Scribd company logo
SERVERLESS
APPLICATIONS
WHERE HAVE ALL THE SERVERS GONE?
WHY?
As a dev team, we should focus on
delivering code, not maintaining the
infrastructure to run that code.
Programmers bring value when they
write code.
WE JUST WANT TO CODE!
PROBLEMS WITH MANAGING YOU OWN SERVERS
• Team needs to have skills to manage IT infrastructure
• What server size?
• Which OS version?
• When do we patch OS?
• How do we patch OS?  downtime!
• Tuning server performance
• How much remaining capacity do we have?
• Handling server failures
• Servers are highly underutilized
• Pay even if you’re not running any workload – pay for
time, not for the actual work
KEY BENEFITS OF SERVERLESS APPROACH
Zero
administration
No
provisioning
Focus on
business
value
Allows rapid
innovation
Seamless
scaling
MONOLITHIC ARCHITECTURE
Presentation tier Business logic tier Database tier
MICROSERVICES ARCHITECTURE
Fleet of microservices
!
!
!
Monolithic
◦ Hard to make changes
◦ Tight coupling between
components
◦ Hard to understand
interdependencies
◦ Partial deployments
impossible
◦ Either all works or nothing
works
◦ Shared data store
◦ Shared codebase – teams
are overlapping
WHY MICROSERVICES?
Microservices
◦ Separation of responsibilites
between components –
easier to understand
◦ Individually deployable
pieces
◦ Easier to test functionalities
in isolation
◦ No sharing of code
◦ No sharing of data
◦ Graceful degradation of
service
What if we could just focus on
solving the business problems
and let someone else run the
code and do all heavy lifting
for us...
CLOUD MAKES IT POSSIBLE!
Data store Caching
Networking
Content
delivery
Compute
Security Monitoring
and logging
Messaging
and queues
Streaming
SERVERLESS BUILDING BLOCKS
API Gateway
Lambda
AWS API GATEWAY
• Public API as a service
• Handles authorization, access control, monitoring, API
version management
• Highly scalable, highly resilient service
• Scales dynamically to handle ANY load
• Seamless integration with AWS services (like Lambda or
Kinesis) or any custom HTTP endpoint
• Caching out of the box
• Charging per million API calls ($3.50 per million API calls)
+ traffic out
AWS LAMBDA
• Function As A Service
• Event-driven serverless compute service
• Triggered by: API gateway call, SNS notification, Kinesis
stream, S3 object upload, CloudWatch alarm, Amazon
Echo....
• Pay only for running time (in 100ms increments)
• Never pay for idle!
• Don’t worry about overprovisioning or underprovisioning
• Automatically scales to handle ANY load
• Supports Node.JS, Python, Java and C# from today!!
• Your code is secured – encrypted at rest
• Monitoring out of the box
AWS LAMBDA LIMITATIONS
• Functions must complete execution in 300 sec
• Allocated memory from 128 MB up to 1.5 GB (in 64 MB
increment)
• Available CPU power proportional to allocated memory
• 500 MB of non-persistent disk space
• Function size (with dependencies) less than 50 MB
• Execution is stateless, but beware – containers are
reused!
• Latency on first request
EXAMPLE #1 (Serverless backend)
Back end
Users
EXAMPLE #1 (Serverless backend)
Back end logic Back end data
Users
EXAMPLE #1 (Serverless backend)
Back end logic Back end data
Web clients
Mobile clients
Services
HTTP / REST
EXAMPLE #1 (Serverless backend)
Web clients
Mobile clients
Services
AWS
API Gateway
AWS
Lambda
AWS
DynamoDB
AWS
CloudFront
EXAMPLE #1 (Serverless backend)
Web clients
Mobile clients
Services
AWS
API Gateway
AWS
Lambda
AWS
DynamoDB
AWS
CloudFront
AWS
S3
EXAMPLE #1 (Serverless backend)
Web clients
Mobile clients
Services
AWS
API Gateway
AWS
Lambda
AWS
DynamoDB
AWS
CloudFront
AWS
S3
AWS
S3
AWS
SNS
EXAMPLE #1 (Serverless backend)
Services
AWS
API Gateway
AWS
Lambda
AWS
DynamoDB
AWS
CloudFront
AWS
S3
AWS
S3
AWS
SNS
EXAMPLE #2 (Hybrid backend)
Web clients
Mobile clients
Services
AWS
API Gateway
AWS
Lambda
AWS
DynamoDB
AWS
CloudFront
AWS EC2 AWS EC2
EXAMPLE #3 (Serverless stream processing)
Mobile clients AWS
Kinesis Streams
AWS
DynamoDB
AWS
S3
AWS
EMR
AWS
Lambda
AWS
Redshift
WHO IS SERVERLESS FOR?
• Do you need high performance at ANY scale?
• Can you afford unpredictable running costs?
• Do you need to individually deploy ony pieces of your
application?
• Do you need to be able to experiment and iterate
quickly with parts of your application?
• Are you building microservices?
MICROSERVICES UTOPIA
MICROSERVICES UTOPIA
“
If you can’t build a modular monolith,
what makes you think microservices
is the answer?
WHAT’S THE CURRENT STATE?
• Technology not mature enough
• No well-proven patterns to follow, everyone is still
experimenting
• No mature frameworks to help us build and deploy
• Still only few players in the game (AWS Lambda, Azure
Functions, Google Cloud Functions, IBM OpenWisk,
Webtask.io....)
• Harder to develop and test locally
• Do you really need this architecture?
• In some cases it’s cheaper to run a fleet of EC2s
IT’S NOT ALWAYS CHEAPER
Lambda 10 x m3.large
Pricing model
First million executions free,
each additional million $0.20
$95 / month for each instace
Our monthly cost $2,162 $950
Our yearly cost $25,944 $11,400
• 100 exeucutions / sec
• Each execution lasts 1 sec
• Each execution is allocated 512 MB of memory
$14,500 difference per year!
THANK YOU!

More Related Content

Viewers also liked (6)

PDF
Innovation at Scale - Top 10 AWS questions when you start
Shiva Narayanaswamy
 
PDF
AWS AWSome Day Roadshow Intro
Ian Massingham
 
PDF
AWS re:Invent 2016 Day 2 Keynote re:Cap
Ian Massingham
 
PDF
AWS re:Invent 2016 Day 1 Keynote re:Cap
Ian Massingham
 
PPTX
Aws introduction
MouryaKumar Reddy Rajala
 
PDF
Security Best Practices: AWS AWSome Day Management Track
Ian Massingham
 
Innovation at Scale - Top 10 AWS questions when you start
Shiva Narayanaswamy
 
AWS AWSome Day Roadshow Intro
Ian Massingham
 
AWS re:Invent 2016 Day 2 Keynote re:Cap
Ian Massingham
 
AWS re:Invent 2016 Day 1 Keynote re:Cap
Ian Massingham
 
Aws introduction
MouryaKumar Reddy Rajala
 
Security Best Practices: AWS AWSome Day Management Track
Ian Massingham
 

Similar to Serverless applications (8)

PDF
Serverless Architectures on AWS Lambda
Serhat Can
 
PDF
Getting Started with AWS Lambda and Serverless Computing
Kristana Kane
 
PDF
20180111 we bde-bs - serverless url shortener
Luca Bianchi
 
PDF
Getting Started with AWS Lambda & Serverless Cloud
Ian Massingham
 
PDF
Contruyendo tu primera aplicación con AWS
Amazon Web Services LATAM
 
PDF
2016-06 - Design your api management strategy - AWS - Microservices on AWS
SmartWave
 
PPTX
From Serverless to InterCloud
Wayne Scarano
 
PDF
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Boaz Ziniman
 
Serverless Architectures on AWS Lambda
Serhat Can
 
Getting Started with AWS Lambda and Serverless Computing
Kristana Kane
 
20180111 we bde-bs - serverless url shortener
Luca Bianchi
 
Getting Started with AWS Lambda & Serverless Cloud
Ian Massingham
 
Contruyendo tu primera aplicación con AWS
Amazon Web Services LATAM
 
2016-06 - Design your api management strategy - AWS - Microservices on AWS
SmartWave
 
From Serverless to InterCloud
Wayne Scarano
 
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Boaz Ziniman
 
Ad

Recently uploaded (20)

PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Ad

Serverless applications

  • 2. WHY? As a dev team, we should focus on delivering code, not maintaining the infrastructure to run that code. Programmers bring value when they write code.
  • 3. WE JUST WANT TO CODE!
  • 4. PROBLEMS WITH MANAGING YOU OWN SERVERS • Team needs to have skills to manage IT infrastructure • What server size? • Which OS version? • When do we patch OS? • How do we patch OS?  downtime! • Tuning server performance • How much remaining capacity do we have? • Handling server failures • Servers are highly underutilized • Pay even if you’re not running any workload – pay for time, not for the actual work
  • 5. KEY BENEFITS OF SERVERLESS APPROACH Zero administration No provisioning Focus on business value Allows rapid innovation Seamless scaling
  • 6. MONOLITHIC ARCHITECTURE Presentation tier Business logic tier Database tier
  • 8. Monolithic ◦ Hard to make changes ◦ Tight coupling between components ◦ Hard to understand interdependencies ◦ Partial deployments impossible ◦ Either all works or nothing works ◦ Shared data store ◦ Shared codebase – teams are overlapping WHY MICROSERVICES? Microservices ◦ Separation of responsibilites between components – easier to understand ◦ Individually deployable pieces ◦ Easier to test functionalities in isolation ◦ No sharing of code ◦ No sharing of data ◦ Graceful degradation of service
  • 9. What if we could just focus on solving the business problems and let someone else run the code and do all heavy lifting for us...
  • 10. CLOUD MAKES IT POSSIBLE! Data store Caching Networking Content delivery Compute Security Monitoring and logging Messaging and queues Streaming
  • 12. AWS API GATEWAY • Public API as a service • Handles authorization, access control, monitoring, API version management • Highly scalable, highly resilient service • Scales dynamically to handle ANY load • Seamless integration with AWS services (like Lambda or Kinesis) or any custom HTTP endpoint • Caching out of the box • Charging per million API calls ($3.50 per million API calls) + traffic out
  • 13. AWS LAMBDA • Function As A Service • Event-driven serverless compute service • Triggered by: API gateway call, SNS notification, Kinesis stream, S3 object upload, CloudWatch alarm, Amazon Echo.... • Pay only for running time (in 100ms increments) • Never pay for idle! • Don’t worry about overprovisioning or underprovisioning • Automatically scales to handle ANY load • Supports Node.JS, Python, Java and C# from today!! • Your code is secured – encrypted at rest • Monitoring out of the box
  • 14. AWS LAMBDA LIMITATIONS • Functions must complete execution in 300 sec • Allocated memory from 128 MB up to 1.5 GB (in 64 MB increment) • Available CPU power proportional to allocated memory • 500 MB of non-persistent disk space • Function size (with dependencies) less than 50 MB • Execution is stateless, but beware – containers are reused! • Latency on first request
  • 15. EXAMPLE #1 (Serverless backend) Back end Users
  • 16. EXAMPLE #1 (Serverless backend) Back end logic Back end data Users
  • 17. EXAMPLE #1 (Serverless backend) Back end logic Back end data Web clients Mobile clients Services HTTP / REST
  • 18. EXAMPLE #1 (Serverless backend) Web clients Mobile clients Services AWS API Gateway AWS Lambda AWS DynamoDB AWS CloudFront
  • 19. EXAMPLE #1 (Serverless backend) Web clients Mobile clients Services AWS API Gateway AWS Lambda AWS DynamoDB AWS CloudFront AWS S3
  • 20. EXAMPLE #1 (Serverless backend) Web clients Mobile clients Services AWS API Gateway AWS Lambda AWS DynamoDB AWS CloudFront AWS S3 AWS S3 AWS SNS
  • 21. EXAMPLE #1 (Serverless backend) Services AWS API Gateway AWS Lambda AWS DynamoDB AWS CloudFront AWS S3 AWS S3 AWS SNS
  • 22. EXAMPLE #2 (Hybrid backend) Web clients Mobile clients Services AWS API Gateway AWS Lambda AWS DynamoDB AWS CloudFront AWS EC2 AWS EC2
  • 23. EXAMPLE #3 (Serverless stream processing) Mobile clients AWS Kinesis Streams AWS DynamoDB AWS S3 AWS EMR AWS Lambda AWS Redshift
  • 24. WHO IS SERVERLESS FOR? • Do you need high performance at ANY scale? • Can you afford unpredictable running costs? • Do you need to individually deploy ony pieces of your application? • Do you need to be able to experiment and iterate quickly with parts of your application? • Are you building microservices?
  • 27. “ If you can’t build a modular monolith, what makes you think microservices is the answer?
  • 28. WHAT’S THE CURRENT STATE? • Technology not mature enough • No well-proven patterns to follow, everyone is still experimenting • No mature frameworks to help us build and deploy • Still only few players in the game (AWS Lambda, Azure Functions, Google Cloud Functions, IBM OpenWisk, Webtask.io....) • Harder to develop and test locally • Do you really need this architecture? • In some cases it’s cheaper to run a fleet of EC2s
  • 29. IT’S NOT ALWAYS CHEAPER Lambda 10 x m3.large Pricing model First million executions free, each additional million $0.20 $95 / month for each instace Our monthly cost $2,162 $950 Our yearly cost $25,944 $11,400 • 100 exeucutions / sec • Each execution lasts 1 sec • Each execution is allocated 512 MB of memory $14,500 difference per year!

Editor's Notes

  • #3: Basic idea behind serverless Value is not in the infrastructure, it’s in the code
  • #7: Simpliest form of architecture Whole logic bundeled together Tightly coupled components Hard to maintain Hard to change
  • #8: Small independent autonomous services Easy to test in isolation Partial deployments Partial scaling SOA done right Zero shared resources!!
  • #30: - m3.large: 4 CPUs and 15 GB ram