SlideShare ist ein Scribd-Unternehmen logo
1 von 48
Downloaden Sie, um offline zu lesen
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
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
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
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

Weitere ähnliche Inhalte

Was ist angesagt?

Cloud computing options
Cloud computing optionsCloud computing options
Cloud computing optionsbotsplash.com
 
Hybrid Cloud Orchestration: How SuperChoice Does It
Hybrid Cloud Orchestration: How SuperChoice Does ItHybrid Cloud Orchestration: How SuperChoice Does It
Hybrid Cloud Orchestration: How SuperChoice Does ItRightScale
 
ITI012En-Cloud computing
ITI012En-Cloud computingITI012En-Cloud computing
ITI012En-Cloud computingHuibert Aalbers
 
Strategic Approaches to AWS Enterprise Application Migration - Technical 201
Strategic Approaches to AWS Enterprise Application Migration - Technical 201Strategic Approaches to AWS Enterprise Application Migration - Technical 201
Strategic Approaches to AWS Enterprise Application Migration - Technical 201Amazon Web Services
 
Microservices & Streaming Data
Microservices & Streaming DataMicroservices & Streaming Data
Microservices & Streaming DataLeon Mergen
 
How to Use RightScale CMP to Manage Cloud: In-Depth Demo
How to Use RightScale CMP to Manage Cloud: In-Depth DemoHow to Use RightScale CMP to Manage Cloud: In-Depth Demo
How to Use RightScale CMP to Manage Cloud: In-Depth DemoRightScale
 
Kentucky gis
Kentucky gisKentucky gis
Kentucky gisedsai
 
AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...
AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...
AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...Amazon Web Services
 
estrat AWS Cloud Breakfast
estrat AWS Cloud Breakfastestrat AWS Cloud Breakfast
estrat AWS Cloud BreakfastPaul Cooper
 
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...AWS Germany
 
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event GridTechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event GridRick van den Bosch
 
Techique, Methodology, Culture
Techique, Methodology, CultureTechique, Methodology, Culture
Techique, Methodology, CultureBenny Bauer
 
Continuous Delivery: How RightScale Releases Weekly
Continuous Delivery: How RightScale Releases WeeklyContinuous Delivery: How RightScale Releases Weekly
Continuous Delivery: How RightScale Releases WeeklyRightScale
 
Scalable Application Development on AWS
Scalable Application Development on AWSScalable Application Development on AWS
Scalable Application Development on AWSMikalai Alimenkou
 
From the Monolith to Microservices - CraftConf 2015
From the Monolith to Microservices - CraftConf 2015From the Monolith to Microservices - CraftConf 2015
From the Monolith to Microservices - CraftConf 2015Randy Shoup
 
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter KempsAWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter KempsAmazon Web Services
 
AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...
AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...
AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...Amazon Web Services
 
Aws developer meetup 24 feb-18 noida
Aws developer meetup 24 feb-18 noidaAws developer meetup 24 feb-18 noida
Aws developer meetup 24 feb-18 noidaAlbert Anthony
 

Was ist angesagt? (20)

Cloud computing options
Cloud computing optionsCloud computing options
Cloud computing options
 
Hybrid Cloud Orchestration: How SuperChoice Does It
Hybrid Cloud Orchestration: How SuperChoice Does ItHybrid Cloud Orchestration: How SuperChoice Does It
Hybrid Cloud Orchestration: How SuperChoice Does It
 
ITI012En-Cloud computing
ITI012En-Cloud computingITI012En-Cloud computing
ITI012En-Cloud computing
 
Strategic Approaches to AWS Enterprise Application Migration - Technical 201
Strategic Approaches to AWS Enterprise Application Migration - Technical 201Strategic Approaches to AWS Enterprise Application Migration - Technical 201
Strategic Approaches to AWS Enterprise Application Migration - Technical 201
 
Microservices & Streaming Data
Microservices & Streaming DataMicroservices & Streaming Data
Microservices & Streaming Data
 
How to Use RightScale CMP to Manage Cloud: In-Depth Demo
How to Use RightScale CMP to Manage Cloud: In-Depth DemoHow to Use RightScale CMP to Manage Cloud: In-Depth Demo
How to Use RightScale CMP to Manage Cloud: In-Depth Demo
 
Kentucky gis
Kentucky gisKentucky gis
Kentucky gis
 
AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...
AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...
AWS Customer Presentation - Thomson Reuters - Delivering on the Promise of Di...
 
estrat AWS Cloud Breakfast
estrat AWS Cloud Breakfastestrat AWS Cloud Breakfast
estrat AWS Cloud Breakfast
 
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...
AWS Fallbeispiele zur Digitalen Transformation - AWS Cloud Web Day für Mittel...
 
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event GridTechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
 
Dude, Where's my Server?
Dude, Where's my Server?Dude, Where's my Server?
Dude, Where's my Server?
 
Techique, Methodology, Culture
Techique, Methodology, CultureTechique, Methodology, Culture
Techique, Methodology, Culture
 
Continuous Delivery: How RightScale Releases Weekly
Continuous Delivery: How RightScale Releases WeeklyContinuous Delivery: How RightScale Releases Weekly
Continuous Delivery: How RightScale Releases Weekly
 
Scalable Application Development on AWS
Scalable Application Development on AWSScalable Application Development on AWS
Scalable Application Development on AWS
 
Amazon WorkSpaces for Education
Amazon WorkSpaces for EducationAmazon WorkSpaces for Education
Amazon WorkSpaces for Education
 
From the Monolith to Microservices - CraftConf 2015
From the Monolith to Microservices - CraftConf 2015From the Monolith to Microservices - CraftConf 2015
From the Monolith to Microservices - CraftConf 2015
 
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter KempsAWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
 
AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...
AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...
AWS Enterprise Summit London | Relaxing on Sunday Mornings with the Sunday Ti...
 
Aws developer meetup 24 feb-18 noida
Aws developer meetup 24 feb-18 noidaAws developer meetup 24 feb-18 noida
Aws developer meetup 24 feb-18 noida
 

Ähnlich wie Serverless - The Future of the Cloud?!

SMC301 The State of Serverless Computing
SMC301 The State of Serverless ComputingSMC301 The State of Serverless Computing
SMC301 The State of Serverless ComputingAmazon Web Services
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingAmazon Web Services
 
NDev Talk - Serverless Design Patterns
NDev Talk - Serverless Design PatternsNDev Talk - Serverless Design Patterns
NDev Talk - Serverless Design PatternsRyan Green
 
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopRaleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopAmazon Web Services
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingKristana Kane
 
使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理Amazon Web Services
 
Aws-What You Need to Know_Simon Elisha
Aws-What You Need to Know_Simon ElishaAws-What You Need to Know_Simon Elisha
Aws-What You Need to Know_Simon ElishaHelen Rogers
 
The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017Amazon Web Services
 
Serverless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBMServerless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBMRightScale
 
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
Stephen Liedig: Building Serverless Backends with AWS Lambda and API GatewayStephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
Stephen Liedig: Building Serverless Backends with AWS Lambda and API GatewaySteve Androulakis
 
Building serverless backends - Tech talk 5 May 2017
Building serverless backends - Tech talk 5 May 2017Building serverless backends - Tech talk 5 May 2017
Building serverless backends - Tech talk 5 May 2017ARDC
 
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T... Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...Amazon Web Services
 
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds MeetupIntroducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds MeetupBoaz Ziniman
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudAmazon Web Services
 
How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018Amazon Web Services
 
20180111 we bde-bs - serverless url shortener
20180111   we bde-bs - serverless url shortener20180111   we bde-bs - serverless url shortener
20180111 we bde-bs - serverless url shortenerLuca Bianchi
 
How Serverless Changes DevOps
How Serverless Changes DevOpsHow Serverless Changes DevOps
How Serverless Changes DevOpsRichard Donkin
 
Serverless Architecture
Serverless ArchitectureServerless Architecture
Serverless Architecturejuly mon
 

Ähnlich wie Serverless - The Future of the Cloud?! (20)

PaaS with Java
PaaS with JavaPaaS with Java
PaaS with Java
 
SMC301 The State of Serverless Computing
SMC301 The State of Serverless ComputingSMC301 The State of Serverless Computing
SMC301 The State of Serverless Computing
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
NDev Talk - Serverless Design Patterns
NDev Talk - Serverless Design PatternsNDev Talk - Serverless Design Patterns
NDev Talk - Serverless Design Patterns
 
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopRaleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshop
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理
 
Aws-What You Need to Know_Simon Elisha
Aws-What You Need to Know_Simon ElishaAws-What You Need to Know_Simon Elisha
Aws-What You Need to Know_Simon Elisha
 
The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017
 
Serverless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBMServerless Comparison: AWS vs Azure vs Google vs IBM
Serverless Comparison: AWS vs Azure vs Google vs IBM
 
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
Stephen Liedig: Building Serverless Backends with AWS Lambda and API GatewayStephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
Stephen Liedig: Building Serverless Backends with AWS Lambda and API Gateway
 
Building serverless backends - Tech talk 5 May 2017
Building serverless backends - Tech talk 5 May 2017Building serverless backends - Tech talk 5 May 2017
Building serverless backends - Tech talk 5 May 2017
 
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T... Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 
What is Serverless Computing?
What is Serverless Computing?What is Serverless Computing?
What is Serverless Computing?
 
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds MeetupIntroducing to serverless computing and AWS lambda - Israel Clouds Meetup
Introducing to serverless computing and AWS lambda - Israel Clouds Meetup
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018
 
20180111 we bde-bs - serverless url shortener
20180111   we bde-bs - serverless url shortener20180111   we bde-bs - serverless url shortener
20180111 we bde-bs - serverless url shortener
 
How Serverless Changes DevOps
How Serverless Changes DevOpsHow Serverless Changes DevOps
How Serverless Changes DevOps
 
Serverless Architecture
Serverless ArchitectureServerless Architecture
Serverless Architecture
 

Mehr von Bert Ertman

Microservices for Mortals
Microservices for MortalsMicroservices for Mortals
Microservices for MortalsBert Ertman
 
VJUG - Building Modular Java Applications in the Cloud Age
VJUG - Building Modular Java Applications in the Cloud AgeVJUG - Building Modular Java Applications in the Cloud Age
VJUG - Building Modular Java Applications in the Cloud AgeBert Ertman
 
Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]
Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]
Migrating from Spring Applications to Java EE 6 [CHINESE VERSION]Bert Ertman
 
Building Modular Cloud Applications in Java - Lessons Learned
Building Modular Cloud Applications in Java - Lessons LearnedBuilding Modular Cloud Applications in Java - Lessons Learned
Building Modular Cloud Applications in Java - Lessons LearnedBert Ertman
 
Modular Java EE in the Cloud
Modular Java EE in the CloudModular Java EE in the Cloud
Modular Java EE in the CloudBert Ertman
 
JavaOne 2011: Migrating Spring Applications to Java EE 6
JavaOne 2011: Migrating Spring Applications to Java EE 6JavaOne 2011: Migrating Spring Applications to Java EE 6
JavaOne 2011: Migrating Spring Applications to Java EE 6Bert Ertman
 

Mehr von Bert Ertman (6)

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

Kürzlich hochgeladen

✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663Call Girls Mumbai
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445ruhi
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...APNIC
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Delhi Call girls
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Standkumarajju5765
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebJames Anderson
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.CarlotaBedoya1
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 

Kürzlich hochgeladen (20)

✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
@9999965857 🫦 Sexy Desi Call Girls Laxmi Nagar 💓 High Profile Escorts Delhi 🫶
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 

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
  • 18.
  • 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
  • 20.
  • 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
  • 41.
  • 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