This document summarizes an IBM Bluemix meetup that took place on May 4, 2016 in Triangle, North Carolina. The meetup included presentations on Swift, OpenWhisk, Blockchain/Hyperledger, and a Q&A session. Attendees could learn about new technologies on IBM Bluemix like the Swift sandbox, OpenWhisk serverless platform, and IBM's involvement in the Hyperledger blockchain project. The next Bluemix meetup was scheduled for May 18, 2016.
12. IBM Bluemix OpenWhisk
The Future of Cloud Programming:
Wiring a Microservices Application Architecture to Respond to Events
13. Meet Dave, the developer
âą Spend time on business
logic that adds value to
my company
13
âą Spend time on low-level
infrastructural and
operational details
I want to⊠I donât want toâŠ
âą Easily consume services
âą Pay only for resources my
apps use
âą Configure and manage
accesses to services
âą Pay for resources my
apps donât use
14. Whisk in a nutshell
âEvent-action platform to execute code in response to eventsâ
15. OpenWhisk: Another way to build appsâŠ
Build your apps, your way.
Use a combination of the most prominent open-source compute technologies
to power your apps. Then, let Bluemix handle the rest.
Ease of getting started Full stack Control
OpenWhisk
Event-driven apps,
deployed in a serverless
environment.
Instant Runtimes
App-centric runtime
environments based on
Cloud Foundry.
IBM Containers
Portable and consistent
delivery of your app
without having to manage
an OS.
Virtual Machines
Get the most flexibility
and control over your
environment with VMs.
16. Whisk in a nutshell
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 â neither less nor more - and charge
you only for code really being executed
Flexible programming model & powerful tooling
We support multiple languages (incl. Swift) and even the execution of custom logic via
docker containers plus tools to declaratively chain your code snippets
Open & open ecosysten
Open to run anywhere to avoid any kind of vendor lock-in and to accelerate the
development of a powerful ecosystem
17. OpenWhisk: How does it work?
}
1
Event Providers
OpenWhisk
Cloudant
Git
Weather
âŠ
âŠ
Data event occurs, e.g.
-Commit on a Git Repository
-CRUD operation on Cloudant
-âŠ.
Trigger execution
of associated
OpenWhisk action
2
âŠ
JS Swift Docker âŠ
18. High-level
Architecture
Triggers: A class of events emitted by
event sources.
Actions: Encapsulate the actual code
to be executed which support multiple
language bindings. Actions invoke any
part of an open ecosystem.
Rules: An association between a
trigger and an action.
Packages: Describe external services
in a uniform manner.
Combined these allow developers to
compose solutions using modern
abstraction and chaining which can be
created, accessed, updated and
deleted via the CLI
OpenWhisk provides a distributed compute service to
execute application logic in response to events.
24. Programming model
Actions: Can be chained to create sequences to increase flexibility and
foster reuse
A
AA
:= A1
+ A2
+ A3
AB := A2
+ A1
+ A3
AC
:= A3
+ A1
+ A2
26. Programming model
Packages: âA shared collection of triggers and actionsâP
A
A read
write
T changes A translate A forecast
A post
T topic
Open
Source A myAction
T myFeed
Yours
T commit
Third
Party
28. Demo
28
User Web App
Node.js Cloudant
Trigger
Cloudant
package
Action
tweet.js
{text: âhello worldâ}
POST âhello worldâ
Cloud Foundry
OpenWhisk
29. Summary
âą OpenWhiskâŠ
â allows you to focus on developing value-adding code
â provides you with a flexible programming model for small agile teams
â provides you with access to an open ecosystem of building blocks
â allows you to compose powerful solutions using modern abstraction
and chaining
â allows you to share and reuse what you have build
â allows you to outsource load & calculation intensive tasks
â only charges you for what you really use
â is available as open solution in which you can participate
31. Introducing Blockchain
A shared ledger technology allowing any participant in
the business network to see THE system of record
(ledger)
32. Blockchain underpins Bitcoin . . .
âą bitcoin: unregulated, censorship-resistant
shadow currency
âą bitcoin: first Blockchain application
âą pioneer of Blockchain technology
âą BUT Blockchain is not bitcoin
Digital currencies different from cryptocurrency
33. Ledgers are key . . .
âą Ledger is THE system of record for a
business
âą Business will have multiple ledgers
for multiple business networks in
which they participate.
âą Transaction - an asset transfer onto
of off the ledger
â John gives a car to Anthony (simple)
âą Contract - conditions for transaction
to occur
â If Anthony pays John money, then car
passes from John to Anthony (simple)
â If car won't start, funds do not pass to
John (as decided by third party
arbitrator) (more complex)
35. Solution â shared, replicated, permissioned ledger
Counter-party
records
Bank records
Party Câs Records Auditor records
Party B Records
Party Aâs Records
Consensus, provenance, immutability, finality
Ledger
Ledger
Ledger
Ledger
Ledger
Ledger
Participants
have multiple
shared ledgers
NOTE :
Participants
same as before
36. Blockchain for Business
Smart
Contract
Privacy
Shared
Ledger
Consensus
Ensuring appropriate
visibility; transactions are
secure, authenticated &
verifiable
Business terms embedded
in transaction database &
executed with transactions
All parties agree to
network verified
transaction
Append-only distributed
system of record shared
across business network
Broader participation, lower cost, increased efficiency
37. Blockchain Benefits
Saves Removes Reduces
Time Cost Risk
Transaction time
from days to near
instantaneous
Overheads and
cost intermediaries
Tampering, fraud &
cyber crime
38. Not for all . . .
Blockchain is NOT
Suited to high performance
(millisecond) transactions
For just one participant (no business
network)
A replicated database replacement
A messaging solution
A transaction processing replacement
Suited for low value, high volume
transactions
39. Hyperledger Project
39
ï§ Linux Foundation - announced 17th December 2015
ï§ New Hyperledger project to transform the way business
transactions are conducted around the world
ï§ Project members understand that an open source, collaborative
development strategy supporting multiple players in multiple
industries is required
Enable adoption of shared ledger technology at a pace and depth not
achievable by any one company or industry
41. >IBM Blockchain
ON IBM CLOUD
LINUX FOUNDATION
HYPERLEDGER
PROJECT
IBM Blockchain
SOLUTIONS
| |
IBM Offerings Supporting Hyperledger
Blockchain
Managed Service on IBM Cloud
Your private Blockchain network in 1-click
Learn with sample applications
Develop your own Smart Contracts
http://www.ibm.com/blockchain/
BLUEMIX SERVICE