SlideShare uma empresa Scribd logo
1 de 41
Dr Frank Munz
@frankmunz
www.munzandmore.com/blog
#DevoxxMA
Serve
rless
Architectu
s
DOAG 2017
• Founded munz & more in 2007
• > 15 years Middleware,
Cloud, and Distributed Computing
• Consulting and
High-End Training
• Wrote two WebLogic and
a Cloud book
Dr. Frank Munz
@frankmunz
Content
1. Clouds
2. FaaS (AWS Lambda)
3. Serverless
4. Frameworks (Fn Project)
5. Conclusion
#serverless @frankmunz
Clouds
#serverless @frankmunz
API
@frankmunz
Elasticity
Pay Per Use
• 1 US cent/h (micro), geo-distribution included
• You own a massively parallel, distributed and highly
available supercomputer with linear costs:
1 instance for 100 hours $= 100 instances for 1h
@frankmunz
Cloud Computing
API Elasticity Pay per use
Fully Programmable Data Center
PaaS
IaaS Amazon EC2
Oracle CI
AWS Beanstalk
Oracle ACCS
FaaS AWS Lambda
Oracle TBD
Automated elasticity.
True pay per use.
Container Service AWS ECS
OCCS
API?
Elasticity?
Pay per use?
AWS Lambda
#serverless @frankmunz
FaaS: AWS Lambda
• AWS announced Lambda in 2014
• Lambda is Function as a Service (FaaS)
@frankmunz
AWS Lambda
AWS SAM Local: test and locally run Lambda (Public Beta)
event: event passed to function
context: runtime context
callback: optional return
(or null)
@frankmunz
Create Lambda
S3
@frankmunz
Vendor lock-in?
Test Code
1
2
34
Example: REST Request
Example: Image Recognition
Flow
munz & more #19
Extract
meta data
AI based
recognition
Create
thumbnail
How to model
flow?
Pricing
Every started request is charged:
• First 1 million req/month are free, forever
+ 400,000 GB seconds of compute time
• Measured in increments of 100 msec
• $0.20 per 1 million req
+ $0.00001667 per GB second
Tip: Use AWS
Cloud Watch
alarms for billing!
@frankmunz
Cost Savings
Expedia(2016):
– 2.3 billions calls
– 200k hours / month
– $ 550 a month
Postlight
– API GW, Lambda, Serverless
– Costs dropped 2 orders of magnitude down to $ 370
https://www.youtube.com/watch?v=gT9x9LnU_rE
https://trackchanges.postlight.com/serving-39-million-requests-for-370-month-or-how-we-reduced-our-hosting-costs-by-two-orders-of-edc30a9a88cd
http://serverlesscalc.com/
@frankmunz
FaaS
#serverless @frankmunz
Function as a Service
• Automated elasticity
• True pay per invocation
• Ephemeral compute
Definition
Characteristics
• Event based
• Reduced control plane (mem
+ CPU + I/O)
• Uses container tech
AMIGO: Public Cloud Services
Amazon Microsoft IBM Google Oracle
Name Lambda Azure Functions Open Whisk Cloud Functions tbd
Year 2014 2016 2016 2016 2016
Status prod prod prod beta announced
Language
Support
NodeJS 4.3.2,
Java8,Python
2.7, .Net C#,
native Linux
JS, PHP, C#, F#,
Python, bash,
PowerShell
NodeJS, Java,
Phython,
(Docker)
NodeJS
(not Java)
Docker based ?
Remarks Bundle functions,
OneDrive and
Bot integration
Apache
Incubator
Deploy from
github or
BitBucket, CLI
Based on
open source
Fn Project?
Link https://aws.amazon.
com/lambda/
https://azure.microsoft.co
m/en-
us/services/functions/
https://openwhisk.apa
che.org/
https://azure.microsoft.co
m/en-
us/services/functions/
https://cloud.oracle.com/home
Security
“Try to attack something
that only lives for few milli-seconds”
(AWS)
@frankmunz
Youtube: Gone in 60ms
https://www.youtube.com/watch?v=YZ058hmLuv0
@frankmunz
Microservices
Developing a single application as
• a suite of small services
• each running in its own process / owns it‘s data
• communicating with lightweight mechanisms
(M. Fowler / J. Lewis)
https://martinfowler.com/articles/microservices.html
@frankmunz
FaaS = Microservice?
• FaaS fulfills M. Fowler’s microservices definition
• A real micro service consists of multiple functions
• FaaS vs. Docker / Kubernetes?
✅
Benefits of FaaS
- Serverless
- Zero config auto scaling
- True pay per use
-> higher abstraction
Limits of FaaS
- Language choice
- Resource limits
- Vendor lock-in
-> reduced flexibility
@frankmunz
Serverless
#serverless @frankmunz
Serverless
Mark Cavage, Java One 2017:
“Reduce notion of all infrastructure”
Serverless
Example: AWS
SQS@frankmunz
Wasn’t that PaaS ?
Yes it‘s PaaS, but serverless requires…
• Never pay for idle
• Automated elasticity
• Reduced config settings
Frameworks
#serverless @frankmunz
Serverless Frameworks dealing with
…
@frankmunz
AWS Chalice
PortabilityComplexity Standards
FaaS OS Frameworks
Overlap in functionality
-> expect consolidation
Survival is about:
• Integration: K8s, Traefik, Zipkin,
Prometheus, Kafka etc.
• Adoption, adoption, adoption
• FaaS as PaaS implementation? https://github.com/faas-lane/
FaaS-Lane/tree/master/candidates@frankmunz
Fn Project
• Apache 2, Open Source Java One 2017
• Fn Server (micro API GW), LB, Flow
• Function / Container duality
• Docker is only dependency -> polyglot
@frankmunz
Fn Project
• Jackson for JSON marshalling in Java
• JAX-RS demo
• Hot functions (30 seconds)
• Fn PaaS service likely? 
@frankmunz
Fn Flow
Java 8 CompletableFutures API
Fancy a demo?
Outlook
• Oracle’s Cloud Native Container strategy
– Kubernetes
– Wercker
– Pay per invocation (?)
• Fn Project as PaaS and on premises
• Azure Container Instance: pay per invoke (today!)
@frankmunz
Conclusion
#serverless @frankmunz
TL;DR #serverless & #FaaS
in all major clouds / could compose
μ out of 𝛌 / PaaS ⊇ Serverless ⊇ FaaS / FaaS
= stateless / true pay per use / automated
scalability / event driven / integrates with
other CS / architect against vendor lock in /
cloud agnostic FaaS frameworks emerge / FaaS
frameworks consolidation ahead /
𝛌 only technically the new μ (AWS).
@frankmunz
3 Membership Tiers
• Oracle ACE Director
• Oracle ACE
• Oracle ACE Associate
bit.ly/OracleACEProgram
500+ Technical Experts
Helping Peers Globally
Connect:
Nominate yourself or someone you know: acenomination.oracle.com
@oracleace
Facebook.com/oracleaces
oracle-ace_ww@oracle.com
munzandmore.com/blog
@frankmunz
munzandmore.com/youtube

Mais conteúdo relacionado

Mais procurados

Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Docker, Inc.
 
Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as code
Axel Quack
 
Hacking apache cloud stack
Hacking apache cloud stackHacking apache cloud stack
Hacking apache cloud stack
Nitin Mehta
 

Mais procurados (20)

Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
 
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
 
Docker Networking in Production at Visa - Sasi Kannappan, Visa and Mark Churc...
Docker Networking in Production at Visa - Sasi Kannappan, Visa and Mark Churc...Docker Networking in Production at Visa - Sasi Kannappan, Visa and Mark Churc...
Docker Networking in Production at Visa - Sasi Kannappan, Visa and Mark Churc...
 
Netflix Container Runtime - Titus - for Container Camp 2016
Netflix Container Runtime - Titus - for Container Camp 2016Netflix Container Runtime - Titus - for Container Camp 2016
Netflix Container Runtime - Titus - for Container Camp 2016
 
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
 
Webcast - Making kubernetes production ready
Webcast - Making kubernetes production readyWebcast - Making kubernetes production ready
Webcast - Making kubernetes production ready
 
OpenStack 101 - All Things Open 2015
OpenStack 101 - All Things Open 2015OpenStack 101 - All Things Open 2015
OpenStack 101 - All Things Open 2015
 
Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as code
 
The Tale of Two Deployments: Greenfield and Monolith Apps with Docker Enterpr...
The Tale of Two Deployments: Greenfield and Monolith Apps with Docker Enterpr...The Tale of Two Deployments: Greenfield and Monolith Apps with Docker Enterpr...
The Tale of Two Deployments: Greenfield and Monolith Apps with Docker Enterpr...
 
Jelastic - Containers Live Migration Behind the Scene
Jelastic - Containers Live Migration Behind the SceneJelastic - Containers Live Migration Behind the Scene
Jelastic - Containers Live Migration Behind the Scene
 
Outside The Wire
Outside The WireOutside The Wire
Outside The Wire
 
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
 
Wido den hollander cloud stack and ceph
Wido den hollander   cloud stack and cephWido den hollander   cloud stack and ceph
Wido den hollander cloud stack and ceph
 
Velocity NYC 2016 - Containers @ Netflix
Velocity NYC 2016 - Containers @ NetflixVelocity NYC 2016 - Containers @ Netflix
Velocity NYC 2016 - Containers @ Netflix
 
Kubernetes for Serverless - Serverless Summit 2017 - Krishna Kumar
Kubernetes for Serverless  - Serverless Summit 2017 - Krishna KumarKubernetes for Serverless  - Serverless Summit 2017 - Krishna Kumar
Kubernetes for Serverless - Serverless Summit 2017 - Krishna Kumar
 
TIAD : Automating the aplication lifecycle
TIAD : Automating the aplication lifecycleTIAD : Automating the aplication lifecycle
TIAD : Automating the aplication lifecycle
 
Docker based Hadoop provisioning - Hadoop Summit 2014
Docker based Hadoop provisioning - Hadoop Summit 2014 Docker based Hadoop provisioning - Hadoop Summit 2014
Docker based Hadoop provisioning - Hadoop Summit 2014
 
Hacking apache cloud stack
Hacking apache cloud stackHacking apache cloud stack
Hacking apache cloud stack
 
Serverless technologies with Kubernetes
Serverless technologies with KubernetesServerless technologies with Kubernetes
Serverless technologies with Kubernetes
 
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
GCP - Continuous Integration and Delivery into Kubernetes with GitHub, Travis...
 

Semelhante a Serverless Presentation from Devoxx 2017 Casablanca (AWS Lambda / FaaS / Fn Project)

What's New in AWS Serverless and Containers
What's New in AWS Serverless and ContainersWhat's New in AWS Serverless and Containers
What's New in AWS Serverless and Containers
Amazon Web Services
 
Middleware in the cloud platform-v2
Middleware in the cloud   platform-v2Middleware in the cloud   platform-v2
Middleware in the cloud platform-v2
Hammad Rajjoub
 
MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...
MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...
MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...
Spiffy
 
Overview of PaaS: Java experience
Overview of PaaS: Java experienceOverview of PaaS: Java experience
Overview of PaaS: Java experience
Igor Anishchenko
 

Semelhante a Serverless Presentation from Devoxx 2017 Casablanca (AWS Lambda / FaaS / Fn Project) (20)

What's New in AWS Serverless and Containers
What's New in AWS Serverless and ContainersWhat's New in AWS Serverless and Containers
What's New in AWS Serverless and Containers
 
Best of re:Invent
Best of re:InventBest of re:Invent
Best of re:Invent
 
Middleware in the cloud platform-v2
Middleware in the cloud   platform-v2Middleware in the cloud   platform-v2
Middleware in the cloud platform-v2
 
The Best of re:invent 2016
The Best of re:invent 2016The Best of re:invent 2016
The Best of re:invent 2016
 
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐從劍宗到氣宗  - 談AWS ECS與Serverless最佳實踐
從劍宗到氣宗 - 談AWS ECS與Serverless最佳實踐
 
AWS 201 - A Walk through the AWS Cloud: App Hosting on AWS - Games, Apps and ...
AWS 201 - A Walk through the AWS Cloud: App Hosting on AWS - Games, Apps and ...AWS 201 - A Walk through the AWS Cloud: App Hosting on AWS - Games, Apps and ...
AWS 201 - A Walk through the AWS Cloud: App Hosting on AWS - Games, Apps and ...
 
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
 
Managing Your Cloud Assets
Managing Your Cloud AssetsManaging Your Cloud Assets
Managing Your Cloud Assets
 
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
 
First Look at Azure Logic Apps (BAUG)
First Look at Azure Logic Apps (BAUG)First Look at Azure Logic Apps (BAUG)
First Look at Azure Logic Apps (BAUG)
 
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
AWS September Webinar Series - Visual Effects Rendering in the AWS Cloud with...
 
MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...
MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...
MS TechDays 2011 - How to Run Middleware in the Cloud Story of Windows Azure ...
 
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
 
Compute Without Servers – Building Applications with AWS Lambda - Technical 301
Compute Without Servers – Building Applications with AWS Lambda - Technical 301Compute Without Servers – Building Applications with AWS Lambda - Technical 301
Compute Without Servers – Building Applications with AWS Lambda - Technical 301
 
AWS Lambda and Serverless Cloud
AWS Lambda and Serverless CloudAWS Lambda and Serverless Cloud
AWS Lambda and Serverless Cloud
 
How to create a Function App on Cosmos DB
How to create a Function App on Cosmos DBHow to create a Function App on Cosmos DB
How to create a Function App on Cosmos DB
 
Overview of PaaS: Java experience
Overview of PaaS: Java experienceOverview of PaaS: Java experience
Overview of PaaS: Java experience
 
Overview of PaaS: Java experience
Overview of PaaS: Java experienceOverview of PaaS: Java experience
Overview of PaaS: Java experience
 
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
 
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...
 

Mais de Frank Munz

WebLogic JMX for DevOps
WebLogic JMX for DevOpsWebLogic JMX for DevOps
WebLogic JMX for DevOps
Frank Munz
 

Mais de Frank Munz (10)

Oracle CODE 2017 San Francisco: Docker on Raspi Swarm to OCCS
Oracle CODE 2017 San Francisco: Docker on Raspi Swarm to OCCSOracle CODE 2017 San Francisco: Docker on Raspi Swarm to OCCS
Oracle CODE 2017 San Francisco: Docker on Raspi Swarm to OCCS
 
Microservices Runtimes
Microservices RuntimesMicroservices Runtimes
Microservices Runtimes
 
Oracle Java Cloud Service JCS (and WebLogic 12c) - What you Should Know
Oracle Java Cloud Service JCS (and WebLogic 12c) - What you Should KnowOracle Java Cloud Service JCS (and WebLogic 12c) - What you Should Know
Oracle Java Cloud Service JCS (and WebLogic 12c) - What you Should Know
 
Docker from A to Z, including Swarm and OCCS
Docker from A to Z, including Swarm and OCCSDocker from A to Z, including Swarm and OCCS
Docker from A to Z, including Swarm and OCCS
 
Oracle Service Bus 12c (12.2.1) What You Always Wanted to Know
Oracle Service Bus 12c (12.2.1) What You Always Wanted to KnowOracle Service Bus 12c (12.2.1) What You Always Wanted to Know
Oracle Service Bus 12c (12.2.1) What You Always Wanted to Know
 
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
 
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
Docker in the Oracle Universe / WebLogic 12c / OFM 12cDocker in the Oracle Universe / WebLogic 12c / OFM 12c
Docker in the Oracle Universe / WebLogic 12c / OFM 12c
 
12 Things About WebLogic 12.1.3 #oow2014 #otnla15
12 Things About WebLogic 12.1.3 #oow2014 #otnla1512 Things About WebLogic 12.1.3 #oow2014 #otnla15
12 Things About WebLogic 12.1.3 #oow2014 #otnla15
 
WebLogic JMX for DevOps
WebLogic JMX for DevOpsWebLogic JMX for DevOps
WebLogic JMX for DevOps
 
Oracle Service Bus (OSB) for the Busy IT Professonial
Oracle Service Bus (OSB) for the Busy IT Professonial Oracle Service Bus (OSB) for the Busy IT Professonial
Oracle Service Bus (OSB) for the Busy IT Professonial
 

Último

%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Último (20)

%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 

Serverless Presentation from Devoxx 2017 Casablanca (AWS Lambda / FaaS / Fn Project)

  • 2.
  • 3. • Founded munz & more in 2007 • > 15 years Middleware, Cloud, and Distributed Computing • Consulting and High-End Training • Wrote two WebLogic and a Cloud book Dr. Frank Munz @frankmunz
  • 4. Content 1. Clouds 2. FaaS (AWS Lambda) 3. Serverless 4. Frameworks (Fn Project) 5. Conclusion #serverless @frankmunz
  • 8. Pay Per Use • 1 US cent/h (micro), geo-distribution included • You own a massively parallel, distributed and highly available supercomputer with linear costs: 1 instance for 100 hours $= 100 instances for 1h @frankmunz
  • 9. Cloud Computing API Elasticity Pay per use Fully Programmable Data Center
  • 10. PaaS IaaS Amazon EC2 Oracle CI AWS Beanstalk Oracle ACCS FaaS AWS Lambda Oracle TBD Automated elasticity. True pay per use. Container Service AWS ECS OCCS API? Elasticity? Pay per use?
  • 12. FaaS: AWS Lambda • AWS announced Lambda in 2014 • Lambda is Function as a Service (FaaS) @frankmunz
  • 13. AWS Lambda AWS SAM Local: test and locally run Lambda (Public Beta) event: event passed to function context: runtime context callback: optional return (or null) @frankmunz
  • 17. Example: Image Recognition Flow munz & more #19 Extract meta data AI based recognition Create thumbnail How to model flow?
  • 18. Pricing Every started request is charged: • First 1 million req/month are free, forever + 400,000 GB seconds of compute time • Measured in increments of 100 msec • $0.20 per 1 million req + $0.00001667 per GB second Tip: Use AWS Cloud Watch alarms for billing! @frankmunz
  • 19. Cost Savings Expedia(2016): – 2.3 billions calls – 200k hours / month – $ 550 a month Postlight – API GW, Lambda, Serverless – Costs dropped 2 orders of magnitude down to $ 370 https://www.youtube.com/watch?v=gT9x9LnU_rE https://trackchanges.postlight.com/serving-39-million-requests-for-370-month-or-how-we-reduced-our-hosting-costs-by-two-orders-of-edc30a9a88cd http://serverlesscalc.com/ @frankmunz
  • 21. Function as a Service • Automated elasticity • True pay per invocation • Ephemeral compute Definition Characteristics • Event based • Reduced control plane (mem + CPU + I/O) • Uses container tech
  • 22. AMIGO: Public Cloud Services Amazon Microsoft IBM Google Oracle Name Lambda Azure Functions Open Whisk Cloud Functions tbd Year 2014 2016 2016 2016 2016 Status prod prod prod beta announced Language Support NodeJS 4.3.2, Java8,Python 2.7, .Net C#, native Linux JS, PHP, C#, F#, Python, bash, PowerShell NodeJS, Java, Phython, (Docker) NodeJS (not Java) Docker based ? Remarks Bundle functions, OneDrive and Bot integration Apache Incubator Deploy from github or BitBucket, CLI Based on open source Fn Project? Link https://aws.amazon. com/lambda/ https://azure.microsoft.co m/en- us/services/functions/ https://openwhisk.apa che.org/ https://azure.microsoft.co m/en- us/services/functions/ https://cloud.oracle.com/home
  • 23. Security “Try to attack something that only lives for few milli-seconds” (AWS) @frankmunz
  • 24. Youtube: Gone in 60ms https://www.youtube.com/watch?v=YZ058hmLuv0 @frankmunz
  • 25. Microservices Developing a single application as • a suite of small services • each running in its own process / owns it‘s data • communicating with lightweight mechanisms (M. Fowler / J. Lewis) https://martinfowler.com/articles/microservices.html @frankmunz
  • 26. FaaS = Microservice? • FaaS fulfills M. Fowler’s microservices definition • A real micro service consists of multiple functions • FaaS vs. Docker / Kubernetes? ✅ Benefits of FaaS - Serverless - Zero config auto scaling - True pay per use -> higher abstraction Limits of FaaS - Language choice - Resource limits - Vendor lock-in -> reduced flexibility @frankmunz
  • 28.
  • 29. Serverless Mark Cavage, Java One 2017: “Reduce notion of all infrastructure” Serverless Example: AWS SQS@frankmunz Wasn’t that PaaS ? Yes it‘s PaaS, but serverless requires… • Never pay for idle • Automated elasticity • Reduced config settings
  • 31. Serverless Frameworks dealing with … @frankmunz AWS Chalice PortabilityComplexity Standards
  • 32. FaaS OS Frameworks Overlap in functionality -> expect consolidation Survival is about: • Integration: K8s, Traefik, Zipkin, Prometheus, Kafka etc. • Adoption, adoption, adoption • FaaS as PaaS implementation? https://github.com/faas-lane/ FaaS-Lane/tree/master/candidates@frankmunz
  • 33. Fn Project • Apache 2, Open Source Java One 2017 • Fn Server (micro API GW), LB, Flow • Function / Container duality • Docker is only dependency -> polyglot @frankmunz
  • 34. Fn Project • Jackson for JSON marshalling in Java • JAX-RS demo • Hot functions (30 seconds) • Fn PaaS service likely?  @frankmunz
  • 35. Fn Flow Java 8 CompletableFutures API
  • 37. Outlook • Oracle’s Cloud Native Container strategy – Kubernetes – Wercker – Pay per invocation (?) • Fn Project as PaaS and on premises • Azure Container Instance: pay per invoke (today!) @frankmunz
  • 39. TL;DR #serverless & #FaaS in all major clouds / could compose μ out of 𝛌 / PaaS ⊇ Serverless ⊇ FaaS / FaaS = stateless / true pay per use / automated scalability / event driven / integrates with other CS / architect against vendor lock in / cloud agnostic FaaS frameworks emerge / FaaS frameworks consolidation ahead / 𝛌 only technically the new μ (AWS). @frankmunz
  • 40. 3 Membership Tiers • Oracle ACE Director • Oracle ACE • Oracle ACE Associate bit.ly/OracleACEProgram 500+ Technical Experts Helping Peers Globally Connect: Nominate yourself or someone you know: acenomination.oracle.com @oracleace Facebook.com/oracleaces oracle-ace_ww@oracle.com

Notas do Editor

  1. Global one man show Intersection of Open Source / Enterprise SW Background HPC / Brain Research
  2. REST API with JSON Structures that go across wire
  3. Autoscaling rules 5 people, many rules
  4. Free lunch! Actually lunch included in $0.01
  5. Happy days…
  6. Well almost. So far, theory. What we write when we write a book. Look at reality… Reality i rocky. Monte Cervino, Matterhorn, 4478m Most photographed mountain in the alps DIVING story. IaaS: Launch Configuration, +Autoscaling Groups +Scaling Events, pay /h PaaS: Min/Max, trigger, IaaS pricing CS: Easy Ccontainer scaling IaaS pay per use pricing
  7. SAM = Serverless Application Model, based on Cloud Formation
  8. NO EVENTBUS! Stateless, with 5 min max exec time Start threads and processes Events based, but no event bus visible Retries + dead letter Q You can use environment variables Invocation times differ per language and per call No config for scaling You pay for GB *s, metered in 100 ms One event can trigger several funcs Function executes at least once (-> idempotent f) AWS Step Function: visual designer No SLAs
  9. Not Http Reuse of container is undpredictable Higher startup times on first hit Higher startup times for Java
  10. Speachlet is technically a servlet Create a skill Define Intents = function Utterances = example user input, you give it several. “similar” is AI.
  11. True pay per use Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms. Like your mobile …
  12. Continuous, automated scaling
  13. Also the size of the attack vector is historically small ! Container lifetime = milli-seconds No open ports Not listening to an IP Lambda triggered by event
  14. Scaling - deal with hundreds of services Modular structure - modularity vs. overhead Independend change cycles - welcome to having 112 versions My EAR story
  15. Serverless is full of servers.
  16. If your PaaS can start efficiently instances in 20 msec that run for half a second, then call it serverless AWS Dynamo: normal mode, you provision r/w throughput and pay. Even if not used.
  17. Alexis ellis
  18. Hot functions keeps container running for 30 secs CF : about 50 different methods for composing, combining, executing asynchronous computation steps and handling errors.
  19. Hot functions keeps container running for 30 secs CF : about 50 different methods for composing, combining, executing asynchronous computation steps and handling errors.
  20. Currently JSON - .thenCompose : add work when first func is done, uses Lambda type safety across severall fn calls. Looks like single programm, but every stepp is exec single JVM, massive paralleziation. Next, the thenCompose call adds some work to be done once the flight booking function completes. This is in the form of a lambda that takes the result of the flight booking call flightRes and returns another future with more work to do. In this case another invokeFunction call but this time to the hotel booking function. Note that because we’ve specified some type information in the invokeFunction call (BookingRes.class) we have type safety across multiple serverless function invocations. And the compiler was able to infer the type of the thenCompose lambda for us. Very cool. Finally there is the whenComplete call which triggers when all of the preceding stages have returned. This takes a lambda with two parameters, a result and an error. One of these will always be null and we can use this to check for and handle errors.
  21. most changes ever within 1 major product version number aka 12.1