cloud development made easy with cloudfoundry - indicthreads cloud computing conference 2011

25
1 Cloud Development Made Easy with CloudFoundry Shekhar Gulati

Upload: indicthreads

Post on 13-May-2015

1.340 views

Category:

Technology


1 download

DESCRIPTION

Session presented at the 2nd IndicThreads.com Conference on Cloud Computing held in Pune, India on 3-4 June 2011. http://CloudComputing.IndicThreads.com Abstract: Cloud Foundry is the first Open PAAS platform project created by VMWare. CloudFoundry makes the life of developer easier by eliminating the time spent installing and configuring infrastructure such as application servers and JVMs. CloudFoundry is all about choices — you have choice of frameworks (Spring + Java, Rails and Sinatara for Rails,and NodeJs) , choice of Application Services (MySQL, REDIS, MongoDB) , choice of Clouds (vSphere , vCloud, AmazonEC2) to work with. The best part of CloudFoundry is that it does not lock you to a cloud provider and does not add any limitations( we all know how difficult it is to develop in Google App Engine). This talk will be divided into three parts : Introducing Cloud Foundry : In the first part I will first talk about what is CloudFoundry, why it was required, how you can deploy applications into cloud using CloudFoundry. Spring Roo Cloud Foundry Integration : Spring Roo is a RAD tool which helps you build spring managed applications very quickly and easily. Spring Roo latest version comes with inbuilt support for CloudFoundry. I will show how a application created using Roo can be deployed to cloud using CloudFoundry. Spring Roo + CloudFoudry is match made in heaven. WaveMaker : Recent SpringSource acquisition Wavemaker can help a non technical person create spring based application in minutes without writing code. I will demo how you can create an application using WaveMaker and deploy to the cloud.

TRANSCRIPT

Page 1: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

1

Cloud Development Made Easy with CloudFoundry

Shekhar Gulati

Page 2: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

2

Hi, my name is...Shekhar Gulati Senior Consultant @ Xebia India Spring Enthusiast Blogger and Writer (JavaLobby,

Developer.com,IBM DeveloperWorks) [email protected] Twitter : shekhargulati

Page 3: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

3

2011 will be the Year PaaS VMWare → CloudFoundry (Scala support) RedHat → OpenShift Amazon → Elastic Beanstalk Google App Engine added Go language

Page 4: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

4

Agenda What is PAAS Issues with existing PAAS offerings (GAE) Open PAAS – CloudFoundry CloudFoundry Demos Spring Roo + CloudFoundry Demo Conclusion

Page 5: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

5

Page 6: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

6

Platform as a Service PaaS provides the facilities to support the end to-end

life cycle of building and delivering web applications and services.

PaaS = Computing Platform + Solution Stack

PaaS is for professional and business developers

To develop new applications “Cloud Aware” from the bottom up.

PaaS is also called Middleware as a Service.

Egs. Google App Engine, Force.com

Page 7: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

7

Issues with existing PAAS(GAE) Can't run existing code. Tied to particular environment. Vendor lock-in (lack of cloud portability). Deployment on public cloud only. Need to change the mindset. Diluted frameworks. Read this article

http://www.carlosble.com/2010/11/goodbye-google-app-engine-gae/

Page 8: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

8

Cloud Developers Bill of Rights

http://www.developerrights.org/The Right to Code

The Right to Build Applications

The Right to Cloud Portability

The Right to a Choice of Frameworks

The Right to a Choice of Application Services

The Right to Platform Transparency

The Right to Emigrate

The Right of Ownership

The Right to Be Left Alone

The Right to Open Source

Page 9: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

9

The Open Platform as a Service

Page 10: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

10

CloudFoundry – Open PAAS Open Source Multi-Language, Multi-Framework,Multi

Application services, Multi-cloud. Cloud Portability Cloud Foundry is both

deployment destination layer that allows deployment to a choice

of clouds, both public and private.

Page 11: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

11

CloudFoundry – The Open PAAS

Page 12: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

12

Choice of Developer Frameworks

Page 13: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

13

Demo 1 – Spring Framework

Let's deploy a Spring Application

Page 14: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

14

Choice of Application Services

Page 15: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

15

Demo 2 – Going to Production

Let's replace hsqldb with MySQL

Page 16: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

16

Demo 3 – Can I support both?

Wouldn't it be great if I can use hsqldb for development and mysql for production?

Page 17: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

17

Demo 4 – Play with NoSQL DB's

Let's play with Redis and MongoDB(Using STS)

Page 18: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

18

Choice of Clouds

Page 19: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

19

Micro Cloud

I want to run CloudFoundry on my laptop

Page 20: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

20

Managing Overload

Page 21: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

21

Demo 6 - Scalability

Let's scale our app up and down

Page 22: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

22

RAD for Cloud

Page 23: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

23

Demo 7 – Spring Roo + CloudFoundry

Rapid Feedback in the Cloud

Page 24: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

24

ConclusionDevelopers should write code, not IT

trouble tickets

Page 25: Cloud Development Made Easy with CloudFoundry  - IndicThreads cloud computing conference 2011

25