Serverless architectures built on an open source platform
Transcript of Serverless architectures built on an open source platform
© 2017 IBM Corporation l Interconnect 2017
IBM BluemixOpenWhisk
Serverless architectures built on an open source platform
@DanielKrook
Daniel KrookSoftware Architect, IBM
IBM Bluemix OpenWhisk@DanielKrook
Incr
easi
ng fo
cus
on b
usin
ess
logi
c
Decreasing concern (and control) over stack implementation
Bare Metal
VM VM
VM
Virtual machines
Functions
Containers
Serverless developers focus more on code, less on infrastructure
IBM Bluemix OpenWhisk@DanielKrook
Monolithic Application
Break-down into microservices
Make each microservice HA
Protect against regional outage
Region A
Region B
Microservices can be hard to manage at scale
IBM Bluemix OpenWhisk@DanielKrook
Emerging workloads are a good fit for event-driven programming
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
IBM Bluemix OpenWhisk@DanielKrook
Memory allocated(MB)
Time executing (milliseconds)
Instancesexecuting simultaneously (count)
Cloud resource cost better matches business value gained
Not a silver bullet, but this can result in substantial savings for many workloads
New cost models more accurately charge for usage
IBM Bluemix OpenWhisk@DanielKrook
OpenWhisk is a cloud platform that executes code in
response to events
OpenWhisk enables these serverless, event-driven workloads
Provides serverless deployment and operations model
Runs code only on-demand on a per-request basis
Optimized utilization, fine-grained metering at any scale
Flexible, extensible, polyglot programming model
Open source and open ecosystem (Apache Incubator)
Ability to run in public, private, and hybrid models
IBM Bluemix OpenWhisk@DanielKrook
Results
Developers work with packages, triggers, actions, and rulesPackage (feed)
Packages provide integration with external event sources
P
Trigger(event)
T
Data sources define events they emit as Triggers
Rule (map)R
Action(function)A
Developers map Actions to Triggers via Rules
IBM Bluemix OpenWhisk@DanielKrook
Apache Incubator
OpenWhisk is built on solid open source foundations
IBM Bluemix OpenWhisk@DanielKrook
Bluemix offers management, tooling, and monitoring
IBM Bluemix OpenWhisk@DanielKrook
Bluemix offers management, tooling, and monitoring
IBM Bluemix OpenWhisk@DanielKrook
Bluemix offers management, tooling, and monitoring
IBM Bluemix OpenWhisk@DanielKrook
Managed service on IBM Bluemixbluemix.net/openwhisk
Delivered asOpen source via Apacheopenwhisk.org
Get started on Bluemix, or explore the open source project
github.com/openwhisk
slack.openwhisk.org
twitter.com/openwhisk
medium.com/openwhisk