Más contenido relacionado La actualidad más candente (20) Similar a Codemotion Berlin 2017 - Event-driven and serverless applications with IBM Cloud Functions (20) Codemotion Berlin 2017 - Event-driven and serverless applications with IBM Cloud Functions3. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
How would you
implement this app?
4. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
It needs to be always available
It needs to handle the unexpected load
I should not pay if it is not being used
5. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }Evolution of serverless
Increasingfocusonbusinesslogic
Decreasing concern (and control) over stack implementation
Bare Metal
VM VM
VM
Virtual machines
Functions
Containers
6. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
What is serverless aka
Functions as a Service?
7. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }What is serverless aka Functions as a Service?
Runs code only
on-demand on a
per-request basis
8. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Runs code only on-demand on
a per-request basis
Serverless
deployment &
operations model
VM
No servers Just code
What is serverless aka Functions as a Service?
9. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Runs code only on-demand on
a per-request basis
Optimal
utilization &
granular pricing
zzz
time
charged
What is serverless aka Functions as a Service?
10. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Runs code only on-demand on
a per-request basis
Scales on
a per-request
basis
What is serverless aka Functions as a Service?
11. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
What is
IBM Cloud Functions?
12. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }What is IBM Cloud Functions?
Functions as a
Service (FaaS)
platform to execute
code in response to
events
13. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Delivered as
Open source via Apache
openwhisk.incubator.apache.org
FaaS platform to execute code
in response to events
What is IBM Cloud Functions?
14. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Managed service on
IBM Cloud
ibm.biz/functions
FaaS platform to execute code
in response to events
What is IBM Cloud Functions?
15. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Triggers
(response)
Rules
Actions
(code)
Source
(events) Results
What is IBM Cloud Functions?
16. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
DEMO
<hello world />
<hello world with params />
<hello world as web action />
<hello world as API />
<emoting API />
<emoting and triggers />
17. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
PUT /questions
GET /questions
GET /stats
PUT /ratings
</> </>
</> </>
html, css,
js, images
18. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
What is serverless
good for?
19. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
IBM Cloud
Functions allows
you to build up an
entirely serverless
application
architecture
Openwhisk
IOT
Mobile
Cognitive
APIs
Data
What is serverless good for?
Functions
20. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Volatile workload that can
be split in smaller short-
running pieces.
Suited for sporadic as well
as heavy load scenarios.
What is serverless good for?
21. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Execute logic in response to database change
Perform analytics on sensor input messages
Provide cognitive computing via chatbots
Schedule tasks performed for a short time
Invoke autoscaled APIs and mobile backends
22. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Swift Action
Dark Vision
Discover dark data in videos with IBM Watson and IBM
Cloud Functions.
Use cases and real world examples
https://github.com/IBM-Bluemix/openwhisk-darkvisionapp
23. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Swift Action
Chatbots
Implement serverless conversational applications, like
chatbots, by passing chat messages to your functions for
further processing.
Use cases and real world examples
24. © 2017 IBM Corporation l IBM Cloud University l Berlin 2017
IBM Cloud Functions
Learn more
25. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Commercial offering home:
ibm.biz/functions
Open-source offering home:
openwhisk.org
Slack:
slack.openwhisk.org
Learn more
Learn
more
26. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Github github.com/apache/incubator-
openwhisk
Twitter twitter.com/openwhisk
Medium medium.com/openwhisk
Slideshare slideshare.net/OpenWhisk
Youtube youtube.com/channel/
UCbzgShnQk8F43NKsvEYA1SA
Learn more
Learn
more
27. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }
Q&A
28. © 2017 IBM Corporation
{ IBM Cloud Functions | Codemotion Berlin 2017 }Dark Vision
Image
Analysis
PUBLIC NETWORK CLOUD NETWORK
OPENWHISK
REST APIAPP STORAGE
Video
Extractor
Audio
Analysis
29. © 2017 IBM Corporation l IBM Cloud University l Berlin 2017
IBM Cloud Functions
PUBLIC NETWORK CLOUD NETWORK
OPENWHISK
REST APIAPP STORAGE
Video
Extractor
1 2
3
4
Image Frames
and
Audio Track
5
Dark Vision
30. © 2017 IBM Corporation l IBM Cloud University l Berlin 2017
IBM Cloud Functions
Image
Analysis
CLOUD NETWORK
OPENWHISK
STORAGE
Image Frame
1
2
3
Watson
Visual Recognition
4
5
Dark Vision
31. © 2017 IBM Corporation l IBM Cloud University l Berlin 2017
IBM Cloud Functions
CLOUD NETWORK
OPENWHISK
STORAGE
Get
TranscriptWatson
Speech to Text
Audio Track
1
2
3
4
Dark Vision
32. © 2017 IBM Corporation l IBM Cloud University l Berlin 2017
IBM Cloud Functions
CLOUD NETWORK
OPENWHISK
STORAGE
Save
TranscriptWatson
Speech to Text
2
3
1
Dark Vision
33. © 2017 IBM Corporation l IBM Cloud University l Berlin 2017
IBM Cloud Functions
CLOUD NETWORK
OPENWHISK
STORAGE
Text
AnalysisWatson
Natural Language
Understanding
Transcript
1
2
3
4
5
Dark Vision