This talk, a case study in application deployment models, was given at IBM InterConnect 2017 in Las Vegas, NV on March 21, 2017 by Lin Sun & Phil Estes of IBM Cloud.
In this talk, Lin & Phil provided a background of IBM Bluemix compute offerings across Cloud Foundry, Containers + Kubernetes, and FaaS/serverless via OpenWhisk and then used a demo application to describe the tradeoffs between using the various deployment models and technology. The application is open source and available at https://github.com/estesp/flightassist
5. 5
IBM is leading 3 projects,
has 2 in incubation &
contributes to 10 overall
IBM has been the #2
contributor since the
community was established,
behind only Pivotal.
Clouds
Services
Buildpacks
Bluemix PaaS Leverages Cloud Foundry
> Continuing IBMâs history of embracing Open Source
6. 6
Bluemix Cloud Foundry Quick Start
> A range of sophisticated programming language & quick start boilerplates:
7. 7
Fast, lightweight, isolated application containers
âDocker containers spin up fast and provide a layer of isolation from other services running in containers.â
âThe lightweight containers can spin up in a matter of seconds without consuming a lot of resources.â
Containers: Based on Docker
8. 8
Read-only template used to create Docker containers
Build new images by modifying existing images
Find and share images on a registry (Docker Hub)
Containers: Images
9. 9
Beta available March 20th.
Combining Docker and Kubernetes to deliver powerful tools,
an intuitive user experience, and built-in security and isolation
to enable rapid delivery of applications - all while leveraging
IBM Cloud Services including cognitive capabilities from
Watson.
www.ibm.com/cloud-computing/bluemix/containers
IBM Bluemix Container Service
10. 10
Intelligent Scheduling Automated rollouts and rollbacks Container Security & PrivacyDesign Your Own Cluster
Self-healing Horizontal scaling Leverages IBM Cloud & Watson Integrated Operational Tools
S
M
L
Service discovery & load balancing Secret & conďŹguration management SimpliďŹed Cluster Management Native Kubernetes Experience
IBM Bluemix Container Service
14. 14
Commonly referred to as âserverlessâ computing, the function/event-oriented
computing model takes focus away from deploying application components onto
servers
Function-as-a-Service: Overview
âEvent-action platform
to execute code in
response to eventsâ
15. 15
Serverless deployment & operations model
We hide infrastructural and operational complexity allowing you to focus on coding: â¨
You provide code â we execute it!
Optimal utilization, fair pricing at any scale
We provide you exactly with the resources you need; and charge you when your for
code is executed
Flexible programming model & powerful tooling
We support multiple languages (incl. Swift) and even the execution of custom logic
via Docker containers plus SDK/tools to declaratively chain your code snippets
Open source & open ecosystem
Open to run anywhere (on-premises vs. Bluemix hosted), no vendor lock-in and a
growing ecosystem of contributors and partners
OpenWhisk: Details
1
2
3
4
16. 16
}1 Associated Services
OpenWhisk Bluemix
Runtime
Cloudant
Data event occurs:
- git commit
- CloudantDB operation
- etc.
Event triggers:
- An associated
OpenWhisk action
2
Node.js Swift Docker
OpenWhisk: How does it work?
Registered Actions
Git
Weather API
âŚ
OR direct execution:
- Web Action endpoint
- `wsk` action execute
- etc.
17. 17
Consistent experience:
Common service binding & consumption model
Common user ID & permissions model
Common routing layer
Consistent experience
⢠Common service binding & consumption model
⢠Common user ID & permissions model
⢠Common routing layer
Level of
abstraction
Flexibility
OpenWhisk
FaaS
flexibility vs ease of use/abstraction trade-off
Bluemix: Compute Models
Cloud Foundry
PaaS
Docker/Containers
CaaS
Kubernetes/Containers
CaaS
18. 18
Execute code on-demand in a highly scalable, managed environment through event
driven triggers. Functions can be written in Javascript, Apple Swift, or custom
Docker images. SDK with service binding and API gateway (beta) support available.
OpenWhisk
Build and deploy portable applications with significant flexibility and control over
content that run anywhere without having to reconfigure and deploy for different
environments. Orchestrate using available technologies, including Kubernetes.
Containers
Deploy and scale applications using a broad set of runtimes, binding to a rich set of
cloud services, without having to manually configure and manage servers.
Cloud
Foundry
Infrastructure
Control
Bluemix: Compute Model Comparison
20. Uses several APIs/services:
> TripIt API
> FlightStats API
> Weather Company API
> Cloudant NoSQL DB
A Node.js application; default deploys as a CloudFoundry
application. Easily decomposable into a set of service
queries after retrieving trip data.
https://github.com/estesp/flightassist/
20
FlightAssist: Overview
25. 25
Deployment Model Comparison
Containers PaaS/Cloud Foundry FaaS/OpenWhisk
⢠Full control over runtime
environment (minimal OS)
⢠Lends itself towards reuse/
organizational control (e.g.
common base image for
application dev/test/prod)
⢠Portable runtime packaging (dev.
laptop, production server, public
cloud)
⢠Orchestration platforms and
paradigms support micro service
architectures well (service
discovery, load balancing, etc.)
⢠No requirement to understand/
manage OS layer; CF buildpacks
⢠Platform handles routing, scaling,
logging, health check with little
to no involvement from developer.
⢠Service catalog/service binding
model highly beneficial for ease of
consuming and configuring
external capabilities (APIs,
databases, platform capabilities)
⢠Infrastructure not even a
discussion point with function
developer. âPaaS on steroidsâ
⢠Highly granular âutilityâ model for
pricing (100ms) means short-lived
functions incur minimal cost. Very
low latency + âinfiniteâ scaling.
⢠Custom [Docker image]
runtime support for non-standard
use cases (bash script, compiled
code) with same workflow
⢠Encourages good micro service
architecture flows with action
trigger and sequence capabilities⢠OS layer updates/patching
⢠More developer/operator concerns:
build, service configuration, custom
middleware/backends (instead of
provided services)
⢠Little to no visibility into platform
(OS image, library/runtime versions,
etc.); mercy of build pack updates?
⢠Tends to guide developer towards
monolithic app development
⢠App routing/interactions limited to
HTTP/HTTPS
⢠Some limitations in runtime support
(complexity in using libs/frameworks)
⢠Actions via HTTP still maturing; can be
complex to configure.
⢠Visibility/debug can be difficult
26. 26
Notices and disclaimers
Copyright Š 2017 by International Business Machines Corporation (IBM).
No part of this document may be reproduced or transmitted in any form
without written permission from IBM.
U.S. Government Users Restricted Rights â use, duplication or
disclosure restricted by GSA ADP Schedule Contract with IBM.
Information in these presentations (including information relating to
products that have not yet been announced by IBM) has been reviewed
for accuracy as of the date of initial publication and could include
unintentional technical or typographical errors. IBM shall have no
responsibility to update this information. This document is distributed
âas isâ without any warranty, either express or implied. In no event
shall IBM be liable for any damage arising from the use of this
information, including but not limited to, loss of data, business
interruption, loss of profit or loss of opportunity. IBM products and
services are warranted according to the terms and conditions of the
agreements under which they are provided.
IBM products are manufactured from new parts or new and used parts. â¨
In some cases, a product may not be new and may have been previously
installed. Regardless, our warranty terms apply.â
Any statements regarding IBM's future direction, intent or product
plans are subject to change or withdrawal without notice.
Performance data contained herein was generally obtained in a
controlled, isolated environments. Customer examples are presented â¨
as illustrations of how those customers have used IBM products and â¨
the results they may have achieved. Actual performance, cost, savings or
other results in other operating environments may vary.
References in this document to IBM products, programs, or services does
not imply that IBM intends to make such products, programs or services
available in all countries in which IBM operates or does business.
Workshops, sessions and associated materials may have been prepared
by independent session speakers, and do not necessarily reflect the â¨
views of IBM. All materials and discussions are provided for informational
purposes only, and are neither intended to, nor shall constitute legal or
other guidance or advice to any individual participant or their specific
situation.
It is the customerâs responsibility to insure its own compliance with legal
requirements and to obtain advice of competent legal counsel as to
the identification and interpretation of any relevant laws and regulatory
requirements that may affect the customerâs business and any actionsâ¨
the customer may need to take to comply with such laws. IBM does not
provide legal advice or represent or warrant that its services or products
will ensure that the customer is in compliance with any law.
27. 27
Notices and disclaimers
continued
Information concerning non-IBM products was obtained from the suppliers
of those products, their published announcements or other publicly
available sources. IBM has not tested those products in connection with
this publication and cannot confirm the accuracy of performance,
compatibility or any other claims related to non-IBM products. Questions
on the capabilities of non-IBM products should be addressed to the
suppliers of those products. IBM does not warrant the quality of any third-
party products, or the ability of any such third-party products to
interoperate with IBMâs products. IBM expressly disclaims all
warranties, expressed or implied, including but not limited to, the
implied warranties of merchantability and fitness for a particular,
purpose.
The provision of the information contained herein is not intended to, and
does not, grant any right or license under any IBM patents, copyrights,
trademarks or other intellectual property right.
IBM, the IBM logo, ibm.com, AsperaÂŽ, Bluemix, Blueworks Live, CICS,
Clearcase, CognosÂŽ, DOORSÂŽ, EmptorisÂŽ, Enterprise Document
Management Systemâ˘, FASPÂŽ, FileNetÂŽ, Global Business ServicesÂŽ,â¨
Global Technology ServicesÂŽ, IBM ExperienceOneâ˘, IBM SmartCloudÂŽ,
IBM Social BusinessÂŽ, Information on Demand, ILOG, MaximoÂŽ,
MQIntegratorÂŽ, MQSeriesÂŽ, NetcoolÂŽ, OMEGAMON, OpenPower,
PureAnalyticsâ˘, PureApplicationÂŽ, pureClusterâ˘, PureCoverageÂŽ,
PureDataÂŽ, PureExperienceÂŽ, PureFlexÂŽ, pureQueryÂŽ, pureScaleÂŽ,
PureSystemsÂŽ, QRadarÂŽ, RationalÂŽ, RhapsodyÂŽ, Smarter CommerceÂŽ,
SoDA, SPSS, Sterling CommerceÂŽ, StoredIQ, TealeafÂŽ, TivoliÂŽ TrusteerÂŽ,
UnicaÂŽ, urban{code}ÂŽ, Watson, WebSphereÂŽ, WorklightÂŽ, X-ForceÂŽ and
System zÂŽ Z/OS, are trademarks of International Business Machines
Corporation, registered in many jurisdictions worldwide. Other product
and service names might be trademarks of IBM or other companies. A
current list of IBM trademarks is available on the Web at "Copyright and
trademark information" at: www.ibm.com/legal/copytrade.shtml.
28. InterConnect
2017
Thank You!
28
Phil Estes @estesp
Lin Sun @linsun_unc
Check out/enhance/contribute to our demo
application:
https://github.com/estesp/flightassist
https://github.com/estesp/flightassist-weather