23
© 2011 IBM Corporation. 1 3 February 2011 Doug Tidwell – Cloud Computing Evangelist, IBM – [email protected] Keeping Your Keeping Your Options Options Open in the Cloud Open in the Cloud

Keeping your options open

Embed Size (px)

DESCRIPTION

A presentation about keeping cloud computing open. The slides include a demo of Apache libcloud and Simple Cloud

Citation preview

Page 1: Keeping your options open

© 2011 IBM Corporation.1 3 February 2011

Doug Tidwell – Cloud Computing Evangelist, IBM – [email protected]

Keeping Your Options Keeping Your Options Open in the CloudOpen in the Cloud

Page 2: Keeping your options open

© 2011 IBM Corporation.2 3 February 2011

AgendaAgenda

Portability and interoperability Life-alteringly exciting demo Apache libcloud and The Simple Cloud API Resources / Next steps

Page 3: Keeping your options open

© 2011 IBM Corporation.3 3 February 2011

Portability and Portability and InteroperabilityInteroperability

Page 4: Keeping your options open

© 2011 IBM Corporation.4 3 February 2011

Vendor lock-inVendor lock-in

If there’s a new technology, any talented

programmer will want to use it.– Maybe the shiny new thing is appropriate for what

we’re doing. – Maybe not. – We’re probably going to use it anyway.

The challenge is to walk the line between using the

newest, coolest thing and avoiding vendor lock-in.

Page 5: Keeping your options open

© 2011 IBM Corporation.5 3 February 2011

In writing flexible code for the cloud, there are two

key concepts: – Portability is the ability to run components or

systems written for one cloud provider in another

cloud provider’s environment.– Interoperability is the ability to write one piece of

code that works with multiple cloud providers,

regardless of the differences between them.

Portability and InteroperabilityPortability and Interoperability

Page 6: Keeping your options open

© 2011 IBM Corporation.6 3 February 2011

How standards workHow standards work

For a standards effort to work, three things have to

happen:– The standard has to solve a common problem in

an elegant way.– The standard has to be implemented consistently

by vendors.– Users have to insist that the products they use

implement the standard.

Page 7: Keeping your options open

© 2011 IBM Corporation.7 3 February 2011

Our DemoOur Demo

Page 8: Keeping your options open

© 2011 IBM Corporation.8 3 February 2011

A sample cloud applicationA sample cloud application

An order entry application running on one or many

VMs in the cloud– Creates a purchase order and sends it to a cloud-based

queue for processing.

A queue that holds the POs An order processing application running on one or

many VMs in the cloud– Creates an invoice and stores it in the cloud

Cloud-based storage that stores the invoices

Page 9: Keeping your options open

© 2011 IBM Corporation.9 3 February 2011

Order processingVM

Demo ArchitectureDemo Architecture

Cloud database

Cloud queue

Cloud storage Order processing

VM2. Create message

with order ID

1. Create order details4. Get order details

5. Store invoice

6. Delete message

with order ID

Single API to control VMs

(start, stop, reboot)

Single API for storage, queues,

databases

3. Get message

with order ID

libcloud

Page 10: Keeping your options open

© 2011 IBM Corporation.10 3 February 2011

A cloud-optimized applicationA cloud-optimized application

If we need more computing power to create orders,

we fire up more VMs. The queue of orders has unlimited capacity. If we need more computing power to process

orders, we fire up more VMs. The storage for invoices has unlimited capacity. When we don’t need VMs, we shut them down.

Page 11: Keeping your options open

© 2011 IBM Corporation.11 3 February 2011

And now, the demo!And now, the demo!

Prepare to be astounded by the cloud in action!Prepare to be astounded by the cloud in action! – Due to cost constraints, we are unable to provide

tissues for those moved to tears by the

demonstration.– Persons prone to hyperventilation or motion

sickness are advised to look away.• Be advised the management cannot be

held responsible for your medical expenses.

Page 12: Keeping your options open

© 2011 IBM Corporation.12 3 February 2011

The messageThe message

libcloud lets us control VMs from different vendors. Simple Cloud lets us access storage and queue and

database services in the cloud.

Page 13: Keeping your options open

© 2011 IBM Corporation.13 3 February 2011

Apache Apache libcloudlibcloud & & The Simple Cloud APIThe Simple Cloud API

incubator.apache.org/libcloud | simplecloud.org

Page 14: Keeping your options open

© 2011 IBM Corporation.14 3 February 2011

Apache Apache libcloudlibcloud

A common library for controlling VMs in the cloud– Create, destroy, reboot and list instances, list and

start images Supports dozens of cloud providers

– But you can add your own libraries to support

other cloud providers. incubator.apache.org/libcloud

Page 15: Keeping your options open

© 2011 IBM Corporation.15 3 February 2011

The Simple Cloud APIThe Simple Cloud API

A joint effort of Zend, GoGrid, IBM, Microsoft,

Nirvanix and Rackspace– But you can add your own libraries to support

other cloud providers. A common library for IaaS services There’s an article on the Simple Cloud API in the

developerWorks Open Source zone: bit.ly/1bSkTx simplecloud.org

Page 16: Keeping your options open

© 2011 IBM Corporation.16 3 February 2011

The Simple Cloud APIThe Simple Cloud API

Covers three areas: – File storage (S3, Nirvanix, Azure Blob Storage,

Rackspace Cloud Files)– Document storage (SimpleDB, Azure Table

Storage)– Simple queues (SQS, Azure Table Storage)

Uses the Factory and Adapter design patterns– A configuration file tells the Factory object which

adapter to create.

Page 17: Keeping your options open

© 2011 IBM Corporation.17 3 February 2011

Openness in actionOpenness in action

IBM has contributed heavily to the Java implementations of libcloud:– https://svn.apache.org/repos/asf/incubator/

libcloud/sandbox/java/trunk/ The Java implementation includes the basic

framework plus adapters for the IBM Smart Business Cloud, Amazon and Rackspace.

Simple Cloud Storage adapters for S3 and Nirvanix are out now, more are on their way....

Page 18: Keeping your options open

© 2011 IBM Corporation.18 3 February 2011

Summary / Resources / Summary / Resources / Next stepsNext steps

Page 19: Keeping your options open

© 2011 IBM Corporation.19 3 February 2011

Get Involved!Get Involved!

Download the code, build a prototype, submit

requirements / new adapters / bug reports– https://svn.apache.org/repos/asf/incubator/

libcloud/sandbox/java/trunk/– simplecloud.org

Page 20: Keeping your options open

© 2011 IBM Corporation.20 3 February 2011

cloudusecases.orgcloudusecases.org

The Cloud Computing Use Cases group is focused on documenting customer requirements.

Covers Security, SLAs, and developer requirements. – Available in Chinese,

Japanese and Korean The group’s latest paper is

Moving to the Cloud.

Join us!Join us!

Page 21: Keeping your options open

© 2011 IBM Corporation.21 3 February 2011

developerWorks cloud zonedeveloperWorks cloud zone

Dozens of articles on cloud computing, including

introductions, code samples, tutorials and podcasts. ibm.com/developerworks/cloud

Page 22: Keeping your options open

© 2011 IBM Corporation.22 3 February 2011

SummarySummary

<hype> Cloud computing will be the biggest Cloud computing will be the biggest

change to IT since the rise of the Web.change to IT since the rise of the Web.

</hype> But to make the most of it, we have to keep things

open. And everybody has to get involved to make that

happen.

Page 23: Keeping your options open

© 2011 IBM Corporation.23 3 February 2011

Doug Tidwell – Cloud Computing Evangelist, IBM – [email protected]

Thanks!Thanks!