SlideShare una empresa de Scribd logo
1 de 28
©2016 Apigee Corp. All Rights Reserved.
Five Things You Should
Know
About Serverless
Greg Brail
©2016 Apigee Corp. All Rights Reserved.
What is “Serverless?”
©2016 Apigee Corp. All Rights Reserved.
Execution model in code runs in a fully managed,
environment; the provider handles the servers,
operating systems and runtime environments
©2016 Apigee Corp. All Rights Reserved.
No servers to manage Automatic Scale
Pay by request
Lightweight Code with No
State
Attributes of Serverless
©2016 Apigee Corp. All Rights Reserved.
Deployment = VM Code
Event based
No access to file system
Pay by request
Built-in logging / monitoring
Google Cloud Functions
AWS Lambda
Azure Functions
What is FaaS?
©2016 Apigee Corp. All Rights Reserved.
Technologies: Amazon Lambda
Reinvigorated the “serverless” craze
Functions in Node.js, Java, Python, or
.NET.
Functions invoked by HTTP APIs
through “API Gateway”
Functions also invoked by changes to
S3, DynamoDB, etc.
Priced by request count and CPU usage
by second
6
©2016 Apigee Corp. All Rights Reserved.
Technologies: Azure Functions
C#, F#, Node.js, Python, bash, or custom
function types
Triggered by HTTP APIs plus various events in
the Azure platform
Priced by CPU usage in seconds
7
©2016 Apigee Corp. All Rights Reserved.
Technologies: Cloud Functions
Functions written in Node.js
Called as HTTP APIs, from Cloud
Storage, or Cloud Pub / Sub
Alpha release so far
8
©2016 Apigee Corp. All Rights Reserved.
Technologles: App Engine
The original “serverless,” but technically “PaaS”
in some forms
Python, Java, PHP, Go, Node.js, Ruby, and
custom runtimes
Invoked via an HTTP API
Priced by machine instance hour (”standard
environment”) or by CPU usage (“flex”)
9
©2016 Apigee Corp. All Rights Reserved.
How Serverless Changes Things
10
©2016 Apigee Corp. All Rights Reserved.
Application Design Matters
Not everything can work in a
serverless world
Developers working with
PaaS learned that as well
11
By Adam Wiggins, 12factor.net
©2016 Apigee Corp. All Rights Reserved.
Faa
S
Baa
S
PubSub
API Gateway
Async
Events
Sync
Events
Reimagined Stack
©2016 Apigee Corp. All Rights Reserved.
Simple database as a service
Usually NoSQL
Limited index configuration
Pay by request / storage
Built-in logging / monitoring
API BaaS
(Usergrid)
Firebase
DynamoDB
Cloud
Datastore
SimpleDB
Google BaaS
AWS BaaS
What is BaaS?
Cloud Datastore Transactions Per Second
(50x Actual Traffic, 5X Worst Case Estimate, 1X Target Traffic)
Original Launch Target Estimated Worst Case Actual Traffic
©2016 Apigee Corp. All Rights Reserved.
● Economies of Scale
● No Less Ops
● Simplified Programming
Model
BaaS Benefits
©2016 Apigee Corp. All Rights Reserved.
Faa
S
PubSub
API Gateway
Async
Events
Sync
Events
Communication Patterns
©2016 Apigee Corp. All Rights Reserved.
/order
function getOrder(..)
function createOrder(..)
function updateOrder(..)
function deleteOrder(..)
APIs for REST <-> RPC
©2016 Apigee Corp. All Rights Reserved.
Design
Develop
Secure
PublishMonitor
Analyze
Monetize
Scale
Full Lifecycle API Management
©2016 Apigee Corp. All Rights Reserved.
Example Production Deployment
©2016 Apigee Corp. All Rights Reserved.
When does Serverless Make
Sense?
20
©2016 Apigee Corp. All Rights Reserved.
©2016 Apigee Corp. All Rights Reserved.
Serverless == Different Constraints
Faster code deployment
Lower initial cost
More flexible overall architecture
... But …
Have to stay “in bounds”
Should keep deployments small
Many potential dependencies
22
©2016 Apigee Corp. All Rights Reserved.
Flexibility vs. Convenience
23
Serverless
PaaS
Containers
Virtual
Machines
More Limited
Environment
Limited
Environment
Containers
Only
Fully Flexible
Most
Convenient
Least
Convenient
©2016 Apigee Corp. All Rights Reserved.
Serverless PaaS Containers VMs
Run Servers depends ✔
React to many
event types
✔
Billed by request depends container VM
Local state ✔ ✔
Run any
environment
✔ ✔
Customize OS ✔ ✔
How Do I Choose?
27
Your turn!
apigee.com/about/developers
https://cloud.google.com/nodejs/samples/
@pbhogill
©2016 Apigee Corp. All Rights Reserved.
Stack Reimagined Simplified
Cheap Lots of fun
Some Gotchas
Five Things to Know
©2016 Apigee Corp. All Rights Reserved.
Conclusion
As developers, we live in a world full of options
It’s up to us to learn them try, them, and apply what we learn
29
Thank you
30

Más contenido relacionado

La actualidad más candente

Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...
Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...
Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...
Apigee | Google Cloud
 

La actualidad más candente (20)

How Apigee Api Management Platform Helps with Digital Excellence
How Apigee Api Management Platform Helps with Digital ExcellenceHow Apigee Api Management Platform Helps with Digital Excellence
How Apigee Api Management Platform Helps with Digital Excellence
 
API Management and Kubernetes
API Management and KubernetesAPI Management and Kubernetes
API Management and Kubernetes
 
Adapt or Die: Serverless Microservices
Adapt or Die: Serverless MicroservicesAdapt or Die: Serverless Microservices
Adapt or Die: Serverless Microservices
 
London Adapt or Die: Opening Keynot
London Adapt or Die: Opening KeynotLondon Adapt or Die: Opening Keynot
London Adapt or Die: Opening Keynot
 
London adapt or-die opening keynote chet kapoor
London adapt or-die opening keynote chet kapoorLondon adapt or-die opening keynote chet kapoor
London adapt or-die opening keynote chet kapoor
 
Microservices Done Right: Key Ingredients for Microservices Success
Microservices Done Right: Key Ingredients for Microservices SuccessMicroservices Done Right: Key Ingredients for Microservices Success
Microservices Done Right: Key Ingredients for Microservices Success
 
Monetization: Unlock More Value from Your APIs
Monetization: Unlock More Value from Your APIs Monetization: Unlock More Value from Your APIs
Monetization: Unlock More Value from Your APIs
 
I Love APIs 2015: Implementing an API Tier to Enable a New Mobile Platform
I Love APIs 2015: Implementing an API Tier to Enable a New Mobile PlatformI Love APIs 2015: Implementing an API Tier to Enable a New Mobile Platform
I Love APIs 2015: Implementing an API Tier to Enable a New Mobile Platform
 
London Adapt or Die: Opening Keynote with Chet Kapoor
London Adapt or Die: Opening Keynote with Chet KapoorLondon Adapt or Die: Opening Keynote with Chet Kapoor
London Adapt or Die: Opening Keynote with Chet Kapoor
 
Apigee Edge: Intro to Microgateway
Apigee Edge: Intro to MicrogatewayApigee Edge: Intro to Microgateway
Apigee Edge: Intro to Microgateway
 
Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...
Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...
Apigee and Accenture Webcast - Accenture Technology Vision 2013 - An API Cent...
 
Apigee Edge Product Demo
Apigee Edge Product DemoApigee Edge Product Demo
Apigee Edge Product Demo
 
Managing Sensitive Information in an API and Microservices World
Managing Sensitive Information in an API and Microservices WorldManaging Sensitive Information in an API and Microservices World
Managing Sensitive Information in an API and Microservices World
 
Platforms, Cloud-Native Architectures, and APIs: Chicago Adapt or Die Keynote
Platforms, Cloud-Native Architectures, and APIs: Chicago Adapt or Die KeynotePlatforms, Cloud-Native Architectures, and APIs: Chicago Adapt or Die Keynote
Platforms, Cloud-Native Architectures, and APIs: Chicago Adapt or Die Keynote
 
Apigee Edge Overview and Roadmap
Apigee Edge Overview and RoadmapApigee Edge Overview and Roadmap
Apigee Edge Overview and Roadmap
 
Mesh the Gears: Mastering the Economics of Digital Leverage
Mesh the Gears: Mastering the Economics of Digital LeverageMesh the Gears: Mastering the Economics of Digital Leverage
Mesh the Gears: Mastering the Economics of Digital Leverage
 
We Built This City - Apigee Edge Architecture
We Built This City - Apigee Edge ArchitectureWe Built This City - Apigee Edge Architecture
We Built This City - Apigee Edge Architecture
 
L.L.Bean’s API Journey: Digital Commerce Done Right
L.L.Bean’s API Journey: Digital Commerce Done RightL.L.Bean’s API Journey: Digital Commerce Done Right
L.L.Bean’s API Journey: Digital Commerce Done Right
 
Apigee Products Overview
Apigee Products OverviewApigee Products Overview
Apigee Products Overview
 
Azure API management dive deep GAB2017
Azure API management dive deep GAB2017Azure API management dive deep GAB2017
Azure API management dive deep GAB2017
 

Destacado

Destacado (13)

London Adapt or Die: Kubernetes, Containers and Cloud - The MoD Story
London Adapt or Die: Kubernetes, Containers and Cloud - The MoD StoryLondon Adapt or Die: Kubernetes, Containers and Cloud - The MoD Story
London Adapt or Die: Kubernetes, Containers and Cloud - The MoD Story
 
London Adapt or Die: Lunch keynote
London Adapt or Die: Lunch keynoteLondon Adapt or Die: Lunch keynote
London Adapt or Die: Lunch keynote
 
Adapt or Die: Opening Keynote with Chet Kapoor
Adapt or Die: Opening Keynote with Chet KapoorAdapt or Die: Opening Keynote with Chet Kapoor
Adapt or Die: Opening Keynote with Chet Kapoor
 
Adapt or Die: Keynote with Anant Jhingran
Adapt or Die: Keynote with Anant JhingranAdapt or Die: Keynote with Anant Jhingran
Adapt or Die: Keynote with Anant Jhingran
 
Adapt or Die: Keynote with Greg Brail
Adapt or Die: Keynote with Greg BrailAdapt or Die: Keynote with Greg Brail
Adapt or Die: Keynote with Greg Brail
 
London Adapt or Die: Closing Keynote — Adapt Now!
London Adapt or Die: Closing Keynote — Adapt Now!London Adapt or Die: Closing Keynote — Adapt Now!
London Adapt or Die: Closing Keynote — Adapt Now!
 
API Governance in the Enterprise
API Governance in the EnterpriseAPI Governance in the Enterprise
API Governance in the Enterprise
 
Cloud Deployments Done Right: Why APIs are Key
Cloud Deployments Done Right: Why APIs are KeyCloud Deployments Done Right: Why APIs are Key
Cloud Deployments Done Right: Why APIs are Key
 
Adapt or Die: A Microservices Story at Google
Adapt or Die: A Microservices Story at GoogleAdapt or Die: A Microservices Story at Google
Adapt or Die: A Microservices Story at Google
 
Becoming the Uncarrier: T-Mobile's Digital Journey
Becoming the Uncarrier: T-Mobile's Digital JourneyBecoming the Uncarrier: T-Mobile's Digital Journey
Becoming the Uncarrier: T-Mobile's Digital Journey
 
Mindbody: A Digital Transformation Story
Mindbody: A Digital Transformation StoryMindbody: A Digital Transformation Story
Mindbody: A Digital Transformation Story
 
Managing Sensitive Information in an API and Microservices World
Managing Sensitive Information in an API and Microservices WorldManaging Sensitive Information in an API and Microservices World
Managing Sensitive Information in an API and Microservices World
 
Bringing API Management to AWS Powered Backends
Bringing API Management to AWS Powered BackendsBringing API Management to AWS Powered Backends
Bringing API Management to AWS Powered Backends
 

Similar a London Adapt or Die: Five Things Enterprises Should Know About Serverless

How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless Applications
Amazon Web Services
 
AWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern ApplicationAWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern Application
Amazon Web Services
 

Similar a London Adapt or Die: Five Things Enterprises Should Know About Serverless (20)

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
 
How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless Applications
 
Introduction to Serverless
Introduction to ServerlessIntroduction to Serverless
Introduction to Serverless
 
Developing Serverless Application on AWS
Developing Serverless Application on AWSDeveloping Serverless Application on AWS
Developing Serverless Application on AWS
 
Serverless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about serversServerless Computing: build and run applications without thinking about servers
Serverless Computing: build and run applications without thinking about servers
 
Introduction to Serverless on AWS
Introduction to Serverless on AWSIntroduction to Serverless on AWS
Introduction to Serverless on AWS
 
Forza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni ServerlessForza Computazionale e Applicazioni Serverless
Forza Computazionale e Applicazioni Serverless
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019 Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019
 
Serverless Developer Experience I AWS Dev Day 2018
Serverless Developer Experience I AWS Dev Day 2018Serverless Developer Experience I AWS Dev Day 2018
Serverless Developer Experience I AWS Dev Day 2018
 
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
Beyond Infrastructure for SAP on AWS (GPSTEC322) - AWS re:Invent 2018
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep Dive
 
Building Serverless Microservices with AWS
Building Serverless Microservices with AWSBuilding Serverless Microservices with AWS
Building Serverless Microservices with AWS
 
Genomics on aws-webinar-april2018
Genomics on aws-webinar-april2018Genomics on aws-webinar-april2018
Genomics on aws-webinar-april2018
 
What's New in Serverless
What's New in ServerlessWhat's New in Serverless
What's New in Serverless
 
Debugging Modern Applications: Introduction to AWS X-Ray
Debugging Modern Applications: Introduction to AWS X-RayDebugging Modern Applications: Introduction to AWS X-Ray
Debugging Modern Applications: Introduction to AWS X-Ray
 
Leadership Session: Using DevOps, Microservices, and Serverless to Accelerate...
Leadership Session: Using DevOps, Microservices, and Serverless to Accelerate...Leadership Session: Using DevOps, Microservices, and Serverless to Accelerate...
Leadership Session: Using DevOps, Microservices, and Serverless to Accelerate...
 
Serverless Developer Experience
Serverless Developer ExperienceServerless Developer Experience
Serverless Developer Experience
 
AWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern ApplicationAWS Serverless Webinar- Unleash Innovation & Build Modern Application
AWS Serverless Webinar- Unleash Innovation & Build Modern Application
 
Serverless Development Deep Dive
Serverless Development Deep DiveServerless Development Deep Dive
Serverless Development Deep Dive
 

Más de Apigee | Google Cloud

Más de Apigee | Google Cloud (7)

How Secure Are Your APIs?
How Secure Are Your APIs?How Secure Are Your APIs?
How Secure Are Your APIs?
 
Magazine Luiza at a glance (1)
Magazine Luiza at a glance (1)Magazine Luiza at a glance (1)
Magazine Luiza at a glance (1)
 
Apigee Demo: API Platform Overview
Apigee Demo: API Platform OverviewApigee Demo: API Platform Overview
Apigee Demo: API Platform Overview
 
Ticketmaster at a glance
Ticketmaster at a glanceTicketmaster at a glance
Ticketmaster at a glance
 
AccuWeather: Recasting API Experiences in a Developer-First World
AccuWeather: Recasting API Experiences in a Developer-First WorldAccuWeather: Recasting API Experiences in a Developer-First World
AccuWeather: Recasting API Experiences in a Developer-First World
 
Which Application Modernization Pattern Is Right For You?
Which Application Modernization Pattern Is Right For You?Which Application Modernization Pattern Is Right For You?
Which Application Modernization Pattern Is Right For You?
 
Walgreens at a glance
Walgreens at a glanceWalgreens at a glance
Walgreens at a glance
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

London Adapt or Die: Five Things Enterprises Should Know About Serverless

  • 1. ©2016 Apigee Corp. All Rights Reserved. Five Things You Should Know About Serverless Greg Brail
  • 2. ©2016 Apigee Corp. All Rights Reserved. What is “Serverless?”
  • 3. ©2016 Apigee Corp. All Rights Reserved. Execution model in code runs in a fully managed, environment; the provider handles the servers, operating systems and runtime environments
  • 4. ©2016 Apigee Corp. All Rights Reserved. No servers to manage Automatic Scale Pay by request Lightweight Code with No State Attributes of Serverless
  • 5. ©2016 Apigee Corp. All Rights Reserved. Deployment = VM Code Event based No access to file system Pay by request Built-in logging / monitoring Google Cloud Functions AWS Lambda Azure Functions What is FaaS?
  • 6. ©2016 Apigee Corp. All Rights Reserved. Technologies: Amazon Lambda Reinvigorated the “serverless” craze Functions in Node.js, Java, Python, or .NET. Functions invoked by HTTP APIs through “API Gateway” Functions also invoked by changes to S3, DynamoDB, etc. Priced by request count and CPU usage by second 6
  • 7. ©2016 Apigee Corp. All Rights Reserved. Technologies: Azure Functions C#, F#, Node.js, Python, bash, or custom function types Triggered by HTTP APIs plus various events in the Azure platform Priced by CPU usage in seconds 7
  • 8. ©2016 Apigee Corp. All Rights Reserved. Technologies: Cloud Functions Functions written in Node.js Called as HTTP APIs, from Cloud Storage, or Cloud Pub / Sub Alpha release so far 8
  • 9. ©2016 Apigee Corp. All Rights Reserved. Technologles: App Engine The original “serverless,” but technically “PaaS” in some forms Python, Java, PHP, Go, Node.js, Ruby, and custom runtimes Invoked via an HTTP API Priced by machine instance hour (”standard environment”) or by CPU usage (“flex”) 9
  • 10. ©2016 Apigee Corp. All Rights Reserved. How Serverless Changes Things 10
  • 11. ©2016 Apigee Corp. All Rights Reserved. Application Design Matters Not everything can work in a serverless world Developers working with PaaS learned that as well 11 By Adam Wiggins, 12factor.net
  • 12. ©2016 Apigee Corp. All Rights Reserved. Faa S Baa S PubSub API Gateway Async Events Sync Events Reimagined Stack
  • 13. ©2016 Apigee Corp. All Rights Reserved. Simple database as a service Usually NoSQL Limited index configuration Pay by request / storage Built-in logging / monitoring API BaaS (Usergrid) Firebase DynamoDB Cloud Datastore SimpleDB Google BaaS AWS BaaS What is BaaS?
  • 14. Cloud Datastore Transactions Per Second (50x Actual Traffic, 5X Worst Case Estimate, 1X Target Traffic) Original Launch Target Estimated Worst Case Actual Traffic
  • 15. ©2016 Apigee Corp. All Rights Reserved. ● Economies of Scale ● No Less Ops ● Simplified Programming Model BaaS Benefits
  • 16. ©2016 Apigee Corp. All Rights Reserved. Faa S PubSub API Gateway Async Events Sync Events Communication Patterns
  • 17. ©2016 Apigee Corp. All Rights Reserved. /order function getOrder(..) function createOrder(..) function updateOrder(..) function deleteOrder(..) APIs for REST <-> RPC
  • 18. ©2016 Apigee Corp. All Rights Reserved. Design Develop Secure PublishMonitor Analyze Monetize Scale Full Lifecycle API Management
  • 19. ©2016 Apigee Corp. All Rights Reserved. Example Production Deployment
  • 20. ©2016 Apigee Corp. All Rights Reserved. When does Serverless Make Sense? 20
  • 21. ©2016 Apigee Corp. All Rights Reserved.
  • 22. ©2016 Apigee Corp. All Rights Reserved. Serverless == Different Constraints Faster code deployment Lower initial cost More flexible overall architecture ... But … Have to stay “in bounds” Should keep deployments small Many potential dependencies 22
  • 23. ©2016 Apigee Corp. All Rights Reserved. Flexibility vs. Convenience 23 Serverless PaaS Containers Virtual Machines More Limited Environment Limited Environment Containers Only Fully Flexible Most Convenient Least Convenient
  • 24. ©2016 Apigee Corp. All Rights Reserved. Serverless PaaS Containers VMs Run Servers depends ✔ React to many event types ✔ Billed by request depends container VM Local state ✔ ✔ Run any environment ✔ ✔ Customize OS ✔ ✔ How Do I Choose?
  • 26. ©2016 Apigee Corp. All Rights Reserved. Stack Reimagined Simplified Cheap Lots of fun Some Gotchas Five Things to Know
  • 27. ©2016 Apigee Corp. All Rights Reserved. Conclusion As developers, we live in a world full of options It’s up to us to learn them try, them, and apply what we learn 29