SlideShare a Scribd company logo
by Bert Ertman
Those who stand for nothing,
fall for anything - Alexander
Hamilton
Serverless

The Future of the Cloud?!
@BertErtman
JAVAZONE 2017
• Fellow at Luminis
• Background in all things Java
since 1995
• Java Champion, JavaOne
Rockstar Speaker, and a Duke’s
Choice Award Winner
• Involved in architecting and
implementing dozens of large
scale systems over the past 20
years or so
• Book author for O’Reilly, speaker
at many conferences
About me
The Evolution of Compute
Physical
Virtualization
Cloud Compute
Containers Serverless
Why?!
The case for Serverless
• So far, the cloud is just someone else’s computer
• Servers should be treated as cattle, not pets
• PAYGO? or PAYGO&aAYDG?
“No server is easier to manage
than no server”
- Werner Vogels

CTO, Amazon
Serverless - what’s in a name?
• Mostly describes what its not…
• Also known as Functions as a Service (FaaS)
• or Function PaaS (fPaaS) as defined by Gartner
• Some people refer to it as Back-end as a Service (BaaS)
Wait! Did someone just say
“Back-end as a Service”?
Back-end as a Service??
Serverless
Manifesto
• Functions are the unit of deployment and scaling
• No Machines, VMs, or Containers are visible in the programming
model
• Permanent storage lives elsewhere
• Scales per request. Users cannot over- or under-provision capacity
• Never pay for idle (no cold servers/containers or their costs)
• Implicitly fault-tolerant because functions can run anywhere
• BYOC - Bring Your Own Code
• Metrics and Logging are a universal right
Main Benefits
• No servers to administer
• Pay for code execution only
• Automatic Scaling
In Other Words…
• We don’t (have to) care about Application Servers
• We don’t (have to) care about Docker
And Best of All
• Very short Time-to-Market
• From development to production in matter of seconds
• Very affordable (PAYG only, no up-front costs)
So far so good,
right?
But…isn’t that PaaS?!
PaaS vs FaaS
• With PaaS, you still manage “applications”
• With PaaS, you take care of scaling
• With PaaS, you manage runtime environment configuration
• With PaaS, you’ll pay for all of the above too
• With FaaS, you have neither
Serverless implementations
• Several Cloud vendors have implementations:
• AWS Lambda
• Google CloudFunctions
• Azure Functions
• IBM BlueMix OpenWhisk
2015 2016 2017
Serverless - The Future of the Cloud?!
AWS Lambda
• Event-driven, serverless computing platform provided by Amazon
• Runs code in response to events and automatically manages the
compute resources required by that code
• First introduced in Nov 2014
• Part of the Amazon Web Services offerings
Serverless - The Future of the Cloud?!
Runtime Support
• Python 2.7
• NodeJS 4.3
• Java 8
• C#
How it works
Upload Trigger Run Pay
lambda
Erhm..
AWS Lambda Pricing
• Suits the PAYG model better than running idle compute instances
• Unlike EC2 which is priced by the hour, Lambdas are priced per 100
ms (and memory footprint per second)
• AWS Free Tier: 1,000,000 free requests per month*
*) Restrictions apply, see AWS Lambda Pricing Details online
Lambdas are
event-driven
Many Event Sources
API Gateway

Amazon S3
Amazon DynamoDB
Amazon Aurora

Amazon Simple Notification Service
Amazon Simple Email Service
Amazon Cognito

Amazon CloudWatch
Amazon Kinesis Streams

AWS CodeCommit
AWS CloudFormation

AWS Config

Amazon Lex

Many Event Sources
API Gateway

Amazon S3
Amazon DynamoDB
Amazon Aurora

Amazon Simple Notification Service
Amazon Simple Email Service
Amazon Cognito

Amazon CloudWatch
Amazon Kinesis Streams

AWS CodeCommit
AWS CloudFormation

AWS Config

Amazon Lex

HTTP(s) requests
CRUD events on
data sources
messaging
events
log/stream
processing
commit hooks /
AWS services
setup
configuration mgmt
voice & text
Rethinking Traditional
Architectural Concepts
Rethinking Traditional Architectural Concepts
Client
(browser)
Web Application
(server-side)
Database
Client
(browser)
API Gateway
Purchase
Database
Authentication
Service
Product
Catalog
(Database)
Search
function
Purchase
function
CDN
1
2
3 6
74
5
Rethinking Traditional Architectural Concepts
Just because you can might not
always be the right reason
Better Example: BaaS
• Backend-as-a-Service for a (mobile) app
• Responds to incoming HTTP GET/POST requests
• Stateless
Typical Scenario
Mobile App
Web application
API Gateway Lambda function DynamoDB
demo
Typical Scenario
Mobile App
Web application
API Gateway Lambda function DynamoDB
Microservice?
Are Lambda functions Microservices?
• Similarities:
• Do one thing, and one thing well
• Event-based interaction == choreography model
• Differences:
• One Lambda is equal to one action == NanoService
• Microservice == bounded context of actions with autonomous
storage
Example: Event-based processing
• Respond to incoming data, such as an S3 Bucket insert
• Useful for data/stream processing, MapReduce, or batch
processing
Typical Scenario
Application S3 Bucket S3 BucketLambda function
demo
What Expedia is doing with Lambda
source: AWS re:invent 2016: Serverless Computing Patterns at Expedia (SVR306)
beyond
Hello World
example
Serverless - The Future of the Cloud?!
Yeah, nice and all, but all of this
$**t is running in the cloud…
OpenWhisk
• Runs in IBM’s BlueMix Cloud, but can also run on-premise
• OpenWhisk is Apache licensed and Open Source
• Currently supports: JavaScript, Java, Python, and Swift(!)
• Possible to run functions in provided Docker images
But there are some more
drawbacks…
Drawbacks
• Vendor control and lock-in
• Multi-tenancy
• Security concerns (increasing the attack surface)
• Loss of server optimizations
• Execution time is limited
• Start-up latency
• Testing
• Discovery
summary
Serverless
• ..is rapidly being embraced by major cloud players
• ..is promoting functions as first class citizens
• ..is event-based, stateless, and transient
• ..is infinitely scalable (in theory)
• ..is different from traditional deployment models
• ..is giving the cloud a run for its money
• ..is lots of bang for the buck
• ..is still very much proprietary, so lock-in is your choice!
Serverless, the future of
the Cloud!
Thank you!
@BertErtman

More Related Content

PDF
Microservices Gone Wrong!
PPT
Dave Nielsen - the economically unstoppable cloud
PDF
Cloud Migration and Portability (with and without Containers)
PPT
Jerry Horgan - Understanding Cloud Computing
PPT
Cloud Computing by Team Go Getters
PDF
Building a Service Provider Cloud Offering - MVMUG Sept2013
PPTX
CA Plex / CM WebClient Implementing on Amazon Cloud Infastructure
PPTX
Cloud computing options
Microservices Gone Wrong!
Dave Nielsen - the economically unstoppable cloud
Cloud Migration and Portability (with and without Containers)
Jerry Horgan - Understanding Cloud Computing
Cloud Computing by Team Go Getters
Building a Service Provider Cloud Offering - MVMUG Sept2013
CA Plex / CM WebClient Implementing on Amazon Cloud Infastructure
Cloud computing options

What's hot (15)

PDF
Hybrid Cloud Orchestration: How SuperChoice Does It
PDF
ITI012En-Cloud computing
PPTX
Microservices & Streaming Data
PDF
How to Use RightScale CMP to Manage Cloud: In-Depth Demo
PDF
Kentucky gis
PDF
estrat AWS Cloud Breakfast
PDF
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...
PPTX
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
PPTX
Dude, Where's my Server?
PPTX
Techique, Methodology, Culture
PDF
Continuous Delivery: How RightScale Releases Weekly
PPTX
Scalable Application Development on AWS
PPTX
From the Monolith to Microservices - CraftConf 2015
PPTX
Aws developer meetup 24 feb-18 noida
PPTX
The business case for the cloud
Hybrid Cloud Orchestration: How SuperChoice Does It
ITI012En-Cloud computing
Microservices & Streaming Data
How to Use RightScale CMP to Manage Cloud: In-Depth Demo
Kentucky gis
estrat AWS Cloud Breakfast
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
Dude, Where's my Server?
Techique, Methodology, Culture
Continuous Delivery: How RightScale Releases Weekly
Scalable Application Development on AWS
From the Monolith to Microservices - CraftConf 2015
Aws developer meetup 24 feb-18 noida
The business case for the cloud
Ad

Similar to Serverless - The Future of the Cloud?! (20)

PDF
PaaS with Java
PDF
NDev Talk - Serverless Design Patterns
PDF
Getting Started with AWS Lambda and Serverless Computing
PDF
Aws-What You Need to Know_Simon Elisha
PDF
Serverless Comparison: AWS vs Azure vs Google vs IBM
PDF
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
PDF
Building serverless backends - Tech talk 5 May 2017
PPTX
What is Serverless Computing?
PDF
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
PDF
20180111 we bde-bs - serverless url shortener
PPTX
How Serverless Changes DevOps
PPTX
Serverless Architecture
PDF
AWS Lambda 활용의 모든 것! - AWS Summit Seoul 2017
PPTX
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
PPTX
IT Talk «Microservices & Serverless Architectures», Alexander Chichenin (Solu...
PDF
Serverless — it all started in Vegas
PPTX
Serverless without Code (Lambda)
PPTX
Developing serverless applications with .NET on AWS
PPTX
From Serverless to InterCloud
PDF
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...
PaaS with Java
NDev Talk - Serverless Design Patterns
Getting Started with AWS Lambda and Serverless Computing
Aws-What You Need to Know_Simon Elisha
Serverless Comparison: AWS vs Azure vs Google vs IBM
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
Building serverless backends - Tech talk 5 May 2017
What is Serverless Computing?
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
20180111 we bde-bs - serverless url shortener
How Serverless Changes DevOps
Serverless Architecture
AWS Lambda 활용의 모든 것! - AWS Summit Seoul 2017
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
IT Talk «Microservices & Serverless Architectures», Alexander Chichenin (Solu...
Serverless — it all started in Vegas
Serverless without Code (Lambda)
Developing serverless applications with .NET on AWS
From Serverless to InterCloud
Openbar Kontich // Google Cloud: past, present and the (oh so sweet) future b...
Ad

More from Bert Ertman (6)

PDF
Microservices for Mortals
PDF
VJUG - Building Modular Java Applications in the Cloud Age
PPT
Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]
PDF
Building Modular Cloud Applications in Java - Lessons Learned
PDF
Modular Java EE in the Cloud
PDF
JavaOne 2011: Migrating Spring Applications to Java EE 6
Microservices for Mortals
VJUG - Building Modular Java Applications in the Cloud Age
Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]
Building Modular Cloud Applications in Java - Lessons Learned
Modular Java EE in the Cloud
JavaOne 2011: Migrating Spring Applications to Java EE 6

Recently uploaded (20)

PDF
“Google Algorithm Updates in 2025 Guide”
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
CSharp_Syntax_Basics.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PDF
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Testing WebRTC applications at scale.pdf
PDF
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
PPTX
artificial intelligence overview of it and more
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
cyber security Workshop awareness ppt.pptx
PPTX
durere- in cancer tu ttresjjnklj gfrrjnrs mhugyfrd
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
“Google Algorithm Updates in 2025 Guide”
Slides PPTX World Game (s) Eco Economic Epochs.pptx
presentation_pfe-universite-molay-seltan.pptx
international classification of diseases ICD-10 review PPT.pptx
Unit-1 introduction to cyber security discuss about how to secure a system
Introuction about WHO-FIC in ICD-10.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
Sims 4 Historia para lo sims 4 para jugar
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
CSharp_Syntax_Basics.pptxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
SAP Ariba Sourcing PPT for learning material
Testing WebRTC applications at scale.pdf
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
artificial intelligence overview of it and more
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Decoding a Decade: 10 Years of Applied CTI Discipline
cyber security Workshop awareness ppt.pptx
durere- in cancer tu ttresjjnklj gfrrjnrs mhugyfrd
APNIC Update, presented at PHNOG 2025 by Shane Hermoso

Serverless - The Future of the Cloud?!

  • 1. by Bert Ertman Those who stand for nothing, fall for anything - Alexander Hamilton Serverless
 The Future of the Cloud?! @BertErtman JAVAZONE 2017
  • 2. • Fellow at Luminis • Background in all things Java since 1995 • Java Champion, JavaOne Rockstar Speaker, and a Duke’s Choice Award Winner • Involved in architecting and implementing dozens of large scale systems over the past 20 years or so • Book author for O’Reilly, speaker at many conferences About me
  • 3. The Evolution of Compute Physical Virtualization Cloud Compute Containers Serverless
  • 5. The case for Serverless • So far, the cloud is just someone else’s computer • Servers should be treated as cattle, not pets • PAYGO? or PAYGO&aAYDG?
  • 6. “No server is easier to manage than no server” - Werner Vogels
 CTO, Amazon
  • 7. Serverless - what’s in a name? • Mostly describes what its not… • Also known as Functions as a Service (FaaS) • or Function PaaS (fPaaS) as defined by Gartner • Some people refer to it as Back-end as a Service (BaaS)
  • 8. Wait! Did someone just say “Back-end as a Service”?
  • 9. Back-end as a Service??
  • 10. Serverless Manifesto • Functions are the unit of deployment and scaling • No Machines, VMs, or Containers are visible in the programming model • Permanent storage lives elsewhere • Scales per request. Users cannot over- or under-provision capacity • Never pay for idle (no cold servers/containers or their costs) • Implicitly fault-tolerant because functions can run anywhere • BYOC - Bring Your Own Code • Metrics and Logging are a universal right
  • 11. Main Benefits • No servers to administer • Pay for code execution only • Automatic Scaling
  • 12. In Other Words… • We don’t (have to) care about Application Servers • We don’t (have to) care about Docker
  • 13. And Best of All • Very short Time-to-Market • From development to production in matter of seconds • Very affordable (PAYG only, no up-front costs)
  • 14. So far so good, right?
  • 16. PaaS vs FaaS • With PaaS, you still manage “applications” • With PaaS, you take care of scaling • With PaaS, you manage runtime environment configuration • With PaaS, you’ll pay for all of the above too • With FaaS, you have neither
  • 17. Serverless implementations • Several Cloud vendors have implementations: • AWS Lambda • Google CloudFunctions • Azure Functions • IBM BlueMix OpenWhisk 2015 2016 2017
  • 19. AWS Lambda • Event-driven, serverless computing platform provided by Amazon • Runs code in response to events and automatically manages the compute resources required by that code • First introduced in Nov 2014 • Part of the Amazon Web Services offerings
  • 21. Runtime Support • Python 2.7 • NodeJS 4.3 • Java 8 • C#
  • 22. How it works Upload Trigger Run Pay
  • 24. AWS Lambda Pricing • Suits the PAYG model better than running idle compute instances • Unlike EC2 which is priced by the hour, Lambdas are priced per 100 ms (and memory footprint per second) • AWS Free Tier: 1,000,000 free requests per month* *) Restrictions apply, see AWS Lambda Pricing Details online
  • 26. Many Event Sources API Gateway
 Amazon S3 Amazon DynamoDB Amazon Aurora
 Amazon Simple Notification Service Amazon Simple Email Service Amazon Cognito
 Amazon CloudWatch Amazon Kinesis Streams
 AWS CodeCommit AWS CloudFormation
 AWS Config
 Amazon Lex

  • 27. Many Event Sources API Gateway
 Amazon S3 Amazon DynamoDB Amazon Aurora
 Amazon Simple Notification Service Amazon Simple Email Service Amazon Cognito
 Amazon CloudWatch Amazon Kinesis Streams
 AWS CodeCommit AWS CloudFormation
 AWS Config
 Amazon Lex
 HTTP(s) requests CRUD events on data sources messaging events log/stream processing commit hooks / AWS services setup configuration mgmt voice & text
  • 29. Rethinking Traditional Architectural Concepts Client (browser) Web Application (server-side) Database
  • 31. Just because you can might not always be the right reason
  • 32. Better Example: BaaS • Backend-as-a-Service for a (mobile) app • Responds to incoming HTTP GET/POST requests • Stateless
  • 33. Typical Scenario Mobile App Web application API Gateway Lambda function DynamoDB
  • 34. demo
  • 35. Typical Scenario Mobile App Web application API Gateway Lambda function DynamoDB Microservice?
  • 36. Are Lambda functions Microservices? • Similarities: • Do one thing, and one thing well • Event-based interaction == choreography model • Differences: • One Lambda is equal to one action == NanoService • Microservice == bounded context of actions with autonomous storage
  • 37. Example: Event-based processing • Respond to incoming data, such as an S3 Bucket insert • Useful for data/stream processing, MapReduce, or batch processing
  • 38. Typical Scenario Application S3 Bucket S3 BucketLambda function
  • 39. demo
  • 40. What Expedia is doing with Lambda source: AWS re:invent 2016: Serverless Computing Patterns at Expedia (SVR306) beyond Hello World example
  • 42. Yeah, nice and all, but all of this $**t is running in the cloud…
  • 43. OpenWhisk • Runs in IBM’s BlueMix Cloud, but can also run on-premise • OpenWhisk is Apache licensed and Open Source • Currently supports: JavaScript, Java, Python, and Swift(!) • Possible to run functions in provided Docker images
  • 44. But there are some more drawbacks…
  • 45. Drawbacks • Vendor control and lock-in • Multi-tenancy • Security concerns (increasing the attack surface) • Loss of server optimizations • Execution time is limited • Start-up latency • Testing • Discovery
  • 47. Serverless • ..is rapidly being embraced by major cloud players • ..is promoting functions as first class citizens • ..is event-based, stateless, and transient • ..is infinitely scalable (in theory) • ..is different from traditional deployment models • ..is giving the cloud a run for its money • ..is lots of bang for the buck • ..is still very much proprietary, so lock-in is your choice!
  • 48. Serverless, the future of the Cloud! Thank you! @BertErtman