© 2016 IBM Corporation
Tom Boucher
@trekkie
Jyoti Chawla
@jyotijchawla
Triangle Bluemix Meetup
IBM Bluemix Recent Announcements
May 4, 2016
http://www.meetup.com/rtpbluemix
2Page© 2016 IBM Corporation
Agenda
5:30 pm - Welcome
5:40pm – Introduction to Swift
6:00 pm - Intorudction to OpenWhisk
6:20 pm - Introduction to Blockchain/Hyperledger
6:40 pm – Q/A and Networking
7:00 pm - End of Meetup
3Page© 2016 IBM Corporation
Presenters
Jyoti Chawla
Senior Cloud Adivsor
jchawla@us.ibm.com
@jyotijchawla
Tom Boucher
Cloud Advisor
tom.boucher@us.ibm.com
@trekkie
4Page© 2016 IBM Corporation
We Offer Startups:
Two Tiers of Free Cloud Credits
USD $2,000/mo
(12 Months)
$1K towards IBM Bluemix
$1K towards SoftLayer
USD $10,000/mo
(12 Months)
Allocate between IBM Bluemix and SoftLayer
in anyway you choose
@ibmge
Apply Today:
https://developer.ibm.com/startups
5Page© 2015 IBM Corporation
Swift on IBM Cloud: A new opportunity for enterprises to
radically simplify mobile app development
Fastest growing language,
cracking top 20 in a year (1)
Ranked highest amongst developers as
most loved language (78%) (2)
More than 525K code runs executed
Over 100K developers from >200 countries
explored the Sandbox
1700+ code shares to Swift.org community
SWIFT ANNOUNCED AS OPEN SOURCE, DEC.
2015.
IBM LAUNCHED THE SWIFT SANDBOX
6Page© 2015 IBM Corporation
IBM: Maturing use of Swift as server side language
BRINGING END-TO-END SWIFT
DEVELOPMENT TO THE IBM
CLOUD
Swift web server
& runtime
Swift
Package
Catalog
Build end-to-end apps Create, share, and
discover Swift codeConcurrency support
Web server framework
in Swift
Now available on Bluemix
Develop skills quickly
Now with Mobile UI,
sharing code with others
7Page© 2015 IBM Corporation
Swift Sandbox
• Collaborate across devices
• Similar to Xcode’s Playground
• Browser based IDE
8Page© 2015 IBM Corporation
IBM’s Contributions since the announcement
https://swiftpkgs.ng.bluemix.net/
9Page© 2015 IBM Corporation
Swift Runtime in IBM Bluemix
• Runtime leverages the Cloud Foundry open source
swift-buildpack
• Bluemix steps:
• provide access to a Linux container
• load the latest Swift binaries
• issue a command to build your application via
Swift.org’s Package Manager
• run your built application
• make your running application available via a
public URL.
10Page© 2015 IBM Corporation
Kitura
• Lightweight web framework
• Build web services with complex routes
• Simplify app deployment
• Open-sourced on Github under an
Apache 2.0 license
Live demo
IBM Bluemix OpenWhisk
The Future of Cloud Programming:
Wiring a Microservices Application Architecture to Respond to Events
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
Whisk in a nutshell
“Event-action platform to execute code in response to events“
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.
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
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 …
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.
Programming model
Trigger: “A class of events that can happen“T
Programming model
Actions: “An event-handler, i.e. code that runs in response to an event“A
Programming model
Actions: Multi-runtime support, e.g. JavaScriptA
function main(msg) {
return { message: 'Hello, ' + msg.name + ' from ' + msg.place };
};
Programming model
Actions: Multi-runtime support, e.g. SwiftA
func main(params:[String:Any]) -> [String:Any] {
var reply = [String:Any] ()
if let name = params[“name”] as? String {
print(“Hello (name)”)
reply[“msg”] = “Goodbye (name)”
}
return reply
}
Programming model
Actions: Multi-runtime support, e.g. Docker containersA
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
Programming model
Rules: “An association of a trigger and an action“R
R := T A
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
Live demo
Demo
28
User Web App
Node.js Cloudant
Trigger
Cloudant
package
Action
tweet.js
{text: ‘hello world’}
POST ‘hello world’
Cloud Foundry
OpenWhisk
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
Blockchain / Hyperledger
30
Introducing Blockchain
A shared ledger technology allowing any participant in
the business network to see THE system of record
(ledger)
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
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)
Problem - Difficult to monitor asset ownership and transfers in a trusted 
business network
Counter-party
records
Bank records
Party C’s Records Auditor records
Party B Records
Party A’s Records
API-integrations
Incident
Inefficient, expensive, vulnerable
Ledger
Ledger
Ledger
Ledger
Ledger
Ledger
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
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
Blockchain Benefits
Saves Removes Reduces
Time Cost Risk
Transaction time
from days to near
instantaneous
Overheads and
cost intermediaries
Tampering, fraud &
cyber crime
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
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
As of 15 Mar 2016
>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
Live demo
43Page© 2015 IBM Corporation
What’s next
Discover and try our Blockchain capabilities on Bluemix:
Discover & try IBM Swift
http://swiftlang.ng.bluemix.net
Discover & try IBM OpenWhisk
http://www.ibm.com/cloud-computing/bluemix/openwhisk/
© 2016 IBM Corporation
RTP Bluemix Meetup
Next meetup: May 18th, 2016
http://www.meetup.com/rtpbluemix/events/230519120

RTP Bluemix Meetup April 20th 2016

  • 1.
    © 2016 IBMCorporation Tom Boucher @trekkie Jyoti Chawla @jyotijchawla Triangle Bluemix Meetup IBM Bluemix Recent Announcements May 4, 2016 http://www.meetup.com/rtpbluemix
  • 2.
    2Page© 2016 IBMCorporation Agenda 5:30 pm - Welcome 5:40pm – Introduction to Swift 6:00 pm - Intorudction to OpenWhisk 6:20 pm - Introduction to Blockchain/Hyperledger 6:40 pm – Q/A and Networking 7:00 pm - End of Meetup
  • 3.
    3Page© 2016 IBMCorporation Presenters Jyoti Chawla Senior Cloud Adivsor jchawla@us.ibm.com @jyotijchawla Tom Boucher Cloud Advisor tom.boucher@us.ibm.com @trekkie
  • 4.
    4Page© 2016 IBMCorporation We Offer Startups: Two Tiers of Free Cloud Credits USD $2,000/mo (12 Months) $1K towards IBM Bluemix $1K towards SoftLayer USD $10,000/mo (12 Months) Allocate between IBM Bluemix and SoftLayer in anyway you choose @ibmge Apply Today: https://developer.ibm.com/startups
  • 5.
    5Page© 2015 IBMCorporation Swift on IBM Cloud: A new opportunity for enterprises to radically simplify mobile app development Fastest growing language, cracking top 20 in a year (1) Ranked highest amongst developers as most loved language (78%) (2) More than 525K code runs executed Over 100K developers from >200 countries explored the Sandbox 1700+ code shares to Swift.org community SWIFT ANNOUNCED AS OPEN SOURCE, DEC. 2015. IBM LAUNCHED THE SWIFT SANDBOX
  • 6.
    6Page© 2015 IBMCorporation IBM: Maturing use of Swift as server side language BRINGING END-TO-END SWIFT DEVELOPMENT TO THE IBM CLOUD Swift web server & runtime Swift Package Catalog Build end-to-end apps Create, share, and discover Swift codeConcurrency support Web server framework in Swift Now available on Bluemix Develop skills quickly Now with Mobile UI, sharing code with others
  • 7.
    7Page© 2015 IBMCorporation Swift Sandbox • Collaborate across devices • Similar to Xcode’s Playground • Browser based IDE
  • 8.
    8Page© 2015 IBMCorporation IBM’s Contributions since the announcement https://swiftpkgs.ng.bluemix.net/
  • 9.
    9Page© 2015 IBMCorporation Swift Runtime in IBM Bluemix • Runtime leverages the Cloud Foundry open source swift-buildpack • Bluemix steps: • provide access to a Linux container • load the latest Swift binaries • issue a command to build your application via Swift.org’s Package Manager • run your built application • make your running application available via a public URL.
  • 10.
    10Page© 2015 IBMCorporation Kitura • Lightweight web framework • Build web services with complex routes • Simplify app deployment • Open-sourced on Github under an Apache 2.0 license
  • 11.
  • 12.
    IBM Bluemix OpenWhisk TheFuture of Cloud Programming: Wiring a Microservices Application Architecture to Respond to Events
  • 13.
    Meet Dave, thedeveloper • 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 anutshell “Event-action platform to execute code in response to events“
  • 15.
    OpenWhisk: Another wayto 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 anutshell 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 doesit 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 classof 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.
  • 19.
    Programming model Trigger: “Aclass of events that can happen“T
  • 20.
    Programming model Actions: “Anevent-handler, i.e. code that runs in response to an event“A
  • 21.
    Programming model Actions: Multi-runtimesupport, e.g. JavaScriptA function main(msg) { return { message: 'Hello, ' + msg.name + ' from ' + msg.place }; };
  • 22.
    Programming model Actions: Multi-runtimesupport, e.g. SwiftA func main(params:[String:Any]) -> [String:Any] { var reply = [String:Any] () if let name = params[“name”] as? String { print(“Hello (name)”) reply[“msg”] = “Goodbye (name)” } return reply }
  • 23.
    Programming model Actions: Multi-runtimesupport, e.g. Docker containersA
  • 24.
    Programming model Actions: Canbe chained to create sequences to increase flexibility and foster reuse A AA := A1 + A2 + A3 AB := A2 + A1 + A3 AC := A3 + A1 + A2
  • 25.
    Programming model Rules: “Anassociation of a trigger and an action“R R := T A
  • 26.
    Programming model Packages: “Ashared 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
  • 27.
  • 28.
    Demo 28 User Web App Node.jsCloudant Trigger Cloudant package Action tweet.js {text: ‘hello world’} POST ‘hello world’ Cloud Foundry OpenWhisk
  • 29.
    Summary • OpenWhisk… – allowsyou 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
  • 30.
  • 31.
    Introducing Blockchain A sharedledger 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)
  • 34.
    Problem - Difficult to monitor asset ownership and transfers in a trusted  business network Counter-party records Bank records PartyC’s Records Auditor records Party B Records Party A’s Records API-integrations Incident Inefficient, expensive, vulnerable Ledger Ledger Ledger Ledger Ledger Ledger
  • 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 Ensuringappropriate 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 RemovesReduces 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  LinuxFoundation - 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
  • 40.
    As of 15Mar 2016
  • 41.
    >IBM Blockchain ON IBMCLOUD 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
  • 42.
  • 43.
    43Page© 2015 IBMCorporation What’s next Discover and try our Blockchain capabilities on Bluemix: Discover & try IBM Swift http://swiftlang.ng.bluemix.net Discover & try IBM OpenWhisk http://www.ibm.com/cloud-computing/bluemix/openwhisk/
  • 44.
    © 2016 IBMCorporation RTP Bluemix Meetup Next meetup: May 18th, 2016 http://www.meetup.com/rtpbluemix/events/230519120