from concept to cloud (cf opentour india)

67
From concept to cloud Chris Richardson Author of POJOs in Action Founder of the original CloudFoundry.com @crichardson [email protected] http://plainoldobjects.com/

Upload: chris-richardson

Post on 10-May-2015

1.175 views

Category:

Technology


0 download

DESCRIPTION

Keynote for Cloud Foundry Open Tour India 2012

TRANSCRIPT

Page 1: From concept to cloud (cf opentour india)

From concept to cloud

Chris Richardson

Author of POJOs in ActionFounder of the original CloudFoundry.com

@[email protected]://plainoldobjects.com/

Page 2: From concept to cloud (cf opentour india)

About Chris

Page 3: From concept to cloud (cf opentour india)

(About Chris)

Page 4: From concept to cloud (cf opentour india)

About Chris()

Page 5: From concept to cloud (cf opentour india)

About Chris

Page 6: From concept to cloud (cf opentour india)

About Chris

http://www.theregister.co.uk/2009/08/19/springsource_cloud_foundry/

Page 7: From concept to cloud (cf opentour india)

vmc push About-Chris

Developer Advocate for CloudFoundry.com

Signup at http://cloudfoundry.comPromo code: cfopentour2012

Page 8: From concept to cloud (cf opentour india)

Dreams of my childhood

Page 9: From concept to cloud (cf opentour india)

Dreams of my childhood

Published in 1968

Page 10: From concept to cloud (cf opentour india)

The vision

HAL 9000

.... is an artificial intelligence

became operational on

12 January 1992.....

Page 11: From concept to cloud (cf opentour india)

It’s 2012!So how are we doing?

Page 12: From concept to cloud (cf opentour india)

Computer hardware has come a long way

Page 13: From concept to cloud (cf opentour india)

1956 - Hard drive

http://boingboing.net/2010/06/24/ibm-hard-disk-drive.html

3.7 Mbit

Weighed over a ton

Designed to fit through a door

1940

1950

1960

1970

1980

1990

2000

2010

Page 14: From concept to cloud (cf opentour india)

1966 - IC-based Computer

http://en.wikipedia.org/wiki/Apollo_Guidance_Computer2,800 ICsMagnetic core memory

1940

1950

1960

1970

1980

1990

2000

2010

Page 15: From concept to cloud (cf opentour india)

1971 - microprocessor

http://en.wikipedia.org/wiki/Microprocessor

4 bit

108-740 kHz

2,300 transistors

1940

1950

1960

1970

1980

1990

2000

2010

Page 16: From concept to cloud (cf opentour india)

The power of Moore’s law

http://www.gotw.ca/publications/concurrency-ddj.htm

Page 17: From concept to cloud (cf opentour india)

In my career1982 RM 380Z4 Mhz 8-bit Z8032K RAM100K floppy

2012MacBookPro2.5 Ghz Quad core 64 bit Intel i7256K/core + 8M cache,16G RAM512G SSD drive

Page 18: From concept to cloud (cf opentour india)

BUT WHAT ABOUT HAL?

Page 19: From concept to cloud (cf opentour india)

The reality

Floor cleaning robot

Page 20: From concept to cloud (cf opentour india)

The reality

http://en.wikipedia.org/wiki/IBM_Watson cluster of ninety IBM Power 750 servers with a total of 2880 POWER7 processor

cores and 16 Terabytes of RAM.

Page 21: From concept to cloud (cf opentour india)

We still have a long way to go before we can

build HAL

Page 22: From concept to cloud (cf opentour india)

One major problem is developer productivity

Page 23: From concept to cloud (cf opentour india)

Software productivity: 4x improvement

Compared to 1,000,000x hardware improvement

Page 24: From concept to cloud (cf opentour india)

Programming languages have barely evolved

Page 25: From concept to cloud (cf opentour india)

1958 - Lisp

http://en.wikipedia.org/wiki/Lisp_(programming_language)

1940

1950

1960

1970

1980

1990

2000

2010

garbage collection dynamic typing

self-hosting compiler tree data structures

(defun factorial (n) (if (<= n 1) 1 (* n (factorial (- n 1)))))

Page 26: From concept to cloud (cf opentour india)

1960 - Algol 60

http://en.wikipedia.org/wiki/Algol_60

1940

1950

1960

1970

1980

1990

2000

2010 Many languages

including Java are derived from Algol

procedure Absmax(a) Size:(n, m) Result:(y) Subscripts:(i, k); value n, m; array a; integer n, m, i, k; real y;begin integer p, q; y := 0; i := k := 1; for p:=1 step 1 until n do for q:=1 step 1 until m do if abs(a[p, q]) > y then begin y := abs(a[p, q]); i := p; k := q endend Absmax

Page 27: From concept to cloud (cf opentour india)

1967 - Simula

http://en.wikipedia.org/wiki/Simula

1940

1950

1960

1970

1980

1990

2000

2010

class-based object-oriented

programming

Page 28: From concept to cloud (cf opentour india)

So what have programming language designers been

doing since then?

Page 29: From concept to cloud (cf opentour india)

1995 - Java

Not innovative BUT

Brought garbage collection, object-oriented programming, exception handling, safety ... to mainstream

developers

Gosling “Java is a blue collar language”

google “Gosling the feel of Java”

1940

1950

1960

1970

1980

1990

2000

2010

Page 30: From concept to cloud (cf opentour india)

But despite that....

Page 31: From concept to cloud (cf opentour india)

Today, a small team can easily build an

application that’s used by millions of people

world-widehttp://highscalability.com/blog/2012/5/7/startups-are-creating-a-new-

system-of-the-world-for-it.html

Page 32: From concept to cloud (cf opentour india)

30+ million users, 2 backend engineers, acquired for $1B

Page 33: From concept to cloud (cf opentour india)

Endpoints everywhere

Page 34: From concept to cloud (cf opentour india)

The web

Page 35: From concept to cloud (cf opentour india)

Cloud Computing

http://en.wikipedia.org/wiki/Cloud_computing

Page 36: From concept to cloud (cf opentour india)

Why Platform-as-a-Service?

Page 37: From concept to cloud (cf opentour india)

Let’s imagine that you want to deploy an app...

• Do you know how much hardware to buy?

• Can you afford it?

• How long does it take to approve, buy and install?

• Who is going to set it up?

• Can you handle a 10x increase in traffic?

• Can you afford a test lab?

Page 38: From concept to cloud (cf opentour india)

Cloud computing empowers us to deal

with these challenges...

Page 39: From concept to cloud (cf opentour india)

Cloud computing defined

IT delivered as a service

Over the internet

Self-service

Pay per use

Page 40: From concept to cloud (cf opentour india)

SaaS

PaaS

IaaS

The three layers of cloud computing

Page 41: From concept to cloud (cf opentour india)

Wednesday October 18, 2006....

.... spoke at the Oakland JUG

AWS evangelist

Page 42: From concept to cloud (cf opentour india)

Sign up and deploy your application a few minutes later

• Login using your existing Amazon account

• Select the web services you want to use

• Only takes a few minutes

Page 43: From concept to cloud (cf opentour india)

Benefits of IaaS

• Agility

• Pay per use

• Elasticity

Page 44: From concept to cloud (cf opentour india)

But you still need to configure and maintain

• Operating systems

• Application servers

• Databases

• ...

Page 45: From concept to cloud (cf opentour india)

Who survived the April 2011 AWS meltdown?

Page 46: From concept to cloud (cf opentour india)

Companies that built their own distributed

platform

Page 47: From concept to cloud (cf opentour india)

SaaS

PaaS

IaaS

Need to move up the stack

Page 48: From concept to cloud (cf opentour india)

PaaS

= Application deployment and

management

Service provisioning+

Page 49: From concept to cloud (cf opentour india)

Overview of Cloud Foundry

Page 50: From concept to cloud (cf opentour india)

Simple, Open, Flexible,

Scalable

The Open Platform as a Service

Deploy and scale applications in seconds, without locking yourself into a single cloud

Page 51: From concept to cloud (cf opentour india)

Applica'on  Service  Interface

OSS community

Private  Clouds  

PublicClouds

MicroClouds

Data Services

Other Services

Msg Services

vFabric Postgres

vFabric RabbitMQTM

Additional partners services …

Page 52: From concept to cloud (cf opentour india)

CloudFoundry.COM - Multi-tenant PaaS operated by VMware

Runtimes & FrameworksServices

vCenter / vSphere

CloudFoundry.COM (beta)

Infrastructure

Page 53: From concept to cloud (cf opentour india)

Micro Cloud FoundryTM – Industry first

downloadable PaaS

Runtimes & FrameworksServices

Your Laptop/PC

Micro Cloud Foundry

Single VM instance of Cloud Foundry

that runs on a developer’s MAC or PC

Page 54: From concept to cloud (cf opentour india)

CloudFoundry.ORG - Community open-source project

CloudFoundry.ORG

DownloadCode

Setup Environment

Deploy Behind FirewallBOSH

Apache2 license

Your Infrastructure

Page 55: From concept to cloud (cf opentour india)

Vibrant open-source ecosystem

One week after Cloud Foundry was

open-sourced!

Page 56: From concept to cloud (cf opentour india)

Vibrant open-source ecosystem

• AppFog.com• Community lead for PHP• Public PaaS

• Joyent• Community lead for Node.js

• ActiveState• Community lead for Python• Stackato private PaaS

Page 57: From concept to cloud (cf opentour india)

Cloud Foundry: you can trade-off effort vs flexibility

Public PaaS

Private PaaS

Custom Private PaaS

Less

More

Less

More

.COM....

....

git clone git://github.com/cloudfoundry/vcap.git

Effort Flexibility

Page 58: From concept to cloud (cf opentour india)

Cloud Foundry = no lock-in

• Standard applications

• Standard services

• Choice of cloud providers"you can check out anytime you like, but you can never

leave."

PREV

ENTS

Page 59: From concept to cloud (cf opentour india)

Using Cloud Foundry

Page 60: From concept to cloud (cf opentour india)

$ vmc target <any cloud>

$ vmc login <credentials> $ vmc push <my-app>

> bind services? Yes

$ vmc update <my-app>

$ vmc instances <my-app> +100

Example vmc commands

Page 61: From concept to cloud (cf opentour india)

Sinatra + Redis

require 'sinatra'require 'redis'

configure do $r = Redis.new(:host => '127.0.0.1', :port => '6379') if !$r end

get '/' do "Hello World! " + $r.incr("hitcounter").to_send

http://sgce2012.cloudfoundry.com/

Connect to Redis

Increment hit counter

Page 62: From concept to cloud (cf opentour india)
Page 63: From concept to cloud (cf opentour india)

Final thoughts

Page 64: From concept to cloud (cf opentour india)

Software development has a long way to go

BUT

The cloud enables anyone with a good idea

to create an application that touches the

lives of millions of people

Page 65: From concept to cloud (cf opentour india)

Cloud Foundry is a remarkably easy way to deploy your

applications

Page 66: From concept to cloud (cf opentour india)

Cloud Foundry gives you choice of languages,

frameworks, services, clouds

Page 67: From concept to cloud (cf opentour india)

Thank you!Chris Richardson

Author of POJOs in ActionFounder of the original CloudFoundry.com

[email protected]@crichardson

http://plainoldobjects.com

Signup for cloudfoundry.com Promo code: cfopentour2012