Removing the Operating System Barrier with Platform as a Service (PaaS) – a guest post from Adron Hall

By Posted in Engineering, New Relic News 11 January 2012

Welcome to the first in a series of articles that will dive into Open Source Software (OSS) available for cloud computing. In this post, I’m going to focus this series on a particular OSS Platform as a Service (PaaS) called CloudFoundry. VMware initiated this product with wide OSS industry support. By far this PaaS offering is one of the most open, but also provides some of the widest support of any PaaS product on the market. CloudFoundry provides many technology frameworks to build with, while preventing lock-in to any single infrastructure platform, hardware provider or vendor.

What Does a PaaS Do For Your Software Development Efforts?
Before modern PaaS, software development had a traditional hosting and development practice. This was exemplified in highly coupled applications developed by a task based waterfall process. In many environments these practices are still heavily used.

Traditional Highly Coupled Applications
Most developers have seen this traditional application architecture. With a front-end client of some type and a back-end database it stands out as a textbook example of application design. Even the modern web applications like ASP.NET or PHP web apps are often modeled around client server or server heavy architecture of some sort. The most common today is a web client of HTML, JavaScript, and CSS that is rendered or communicates with a server side that provides data storage in a relational database.

Highly Coupled Environments
Of these highly coupled application architectures, a software team usually sets up an environment that mimics the servers and tools they need. Sometimes this works well, sometimes it works horribly. These environments are broken into subsets that need to be duplicated, but often are not. The environments usually consist of development, quality assurance (QA) or testing, user acceptance testing (UAT), and production. Development teams spend significant resources to maintain, build, and remove such environments.

In these enterprises, the software is created and moves through each of these environments toward production. Sometimes there is some automation, but often not, causing a very time intensive, costly, and error prone progression of steps toward production.

Hopefully the application reaches a production environment without any significant errors, but that is often not the case. Clients, either internal to the business or external, then use this environment acting as a last tier of testing through actual use. For the more traditional environments this process can take several hours, days, and sometimes even weeks!

Because of this error prone environment, it takes hours of maintenance, often multiple team members spending time away from actual software development to ensure the stability of the environment. In the end, the environment still has problems, fails, needs rebooting, etc. This environment is not designed for failure or for resiliency. This just begins the long list of problems with traditional hosting environments and traditional development services. I’m sure you could add a list of your own.

Alright? How About a Solution? Enter PaaS!
Wouldn’t it be sweet if operations, software developers, and the business had something they could develop with in a kind of virtual space? Imagine a space that is not highly coupled to a hardware machine or a single server, database, or other single point of failure. Imagine an environment that could be auto-scaled, geographically dispersed, and could insure 5 9’s of uptime. Just think of a space that could be virtualized so it could shift as needed, so that it could provide a simple path to deploy to, yet connect and sit a top whatever infrastructure a business would find best for this space. Well this type of software and service exists, rolled into an idea and product referred to as PaaS. With CloudFoundry, that’s exactly what the OSS Community has created!

OSS Infrastructure as a Service Overview
It is important to note the currently available offerings in the OSS Community related to cloud computing for the Infrastructure as a Service (IaaS) Layer. Creating an OSS PaaS relies on a large subset of technological building blocks to deploy, automate, virtualize, and manage infrastructure. Some of these efforts have spawned the following products and many more:

- OpenStack:  The OSS community has been working on an offering with a number of companies called OpenStack. OpenStack provides an OSS suite that can be used to manage, deploy, and build out cloud infrastructure from Dell, HP, Amazon Web Services, Rackspace, or a number of other providers.

- CrowBar:  Crowbar was developed by the Dell CloudEdge Solutions Team as a OpenStack installer but has evolved as a much broader function tool. It is grown into a wrapper for Opscode Chef Server.

- Chef: Chef is an open source software systems integration framework, built to bring the benefits of configuration management to infrastructure.

- Puppet:  Puppet is an open source software system for automating system administration tasks for systems infrastructure.

Although these tools have made management of infrastructure exponentially easier, there are still many gaps to be bridged in actual development and deployment of software solutions. PaaS functions to manage the infrastructure resources to enable the developer to focus on building applications.

OSS Platform as a Service: CloudFoundry
To maintain a solid, high quality, and powerful open source software stack from infrastructure to the PaaS, CloudFoundry steps in to fill the gap for the OSS community. Over the last few months, an increasing number of supporters, contributors, and advocates of CloudFoundry have been formed to expand the platforms supported and capabilities of CloudFoundry.

CloudFoundry provides support for many platform frameworks. The list below will have additions very soon since the ongoing work by many groups is enabling more frameworks everyday.

- Rails (Ruby)
- Sinatra (Ruby)
- Python
- Grails (Java)
- Spring (Java)
- Node.js (JavaScript)
- Scala

The infrastructure service CloudFoundry provides support for varies widely. Just like the frameworks listed above, the infrastructure list will be changing since groups will be adding support rapidly.

- OpenStack (Which includes any of the systems supporting OpenStack such as Windows Azure, Rackspace, etc.)
- Rackspace
- Windows Azure
- Amazon Web Services (AWS)
- CloudFoundry (the actual provider)
- ActiveState
- AppFog
- SpringSource

Some other tools that CloudFoundry PaaS supports include multiple NoSQL, relational databases, caching products, and more.

- RabbitMQ
- vFabric Postgresql
- MongoDB
- Redis

For the Microsoft Enterprise, OSS IronFoundry Adds Support for .NET
.NET has been excluded from the feature list of CloudFoundry until IronFoundry was released on December 13th. IronFoundry is a fork of the CloudFoundry Solution that enables .NET to run with any CloudFoundry Environment. This draws .NET into a level of parity with other platforms like Ruby on Rails, PHP, and Java for open source PAAS compatibility.

Now that we’re all on the same page with OSS, PaaS, and what we all can get out of such a radical shift in when, how, and where we develop software systems get ready for a deep dive. I’m going to jump into installation, configuration, and deployment of CloudFoundry and IronFoundry. After I cover the material to get up and running we’ll take a spin around node.js, .NET, Ruby on Rails, MongoDB, Redis, or maybe some other technologies to deploy, but you’ll have to stay tuned in and keep reading to know which ones I’ll cover!

This is the first of five guest posts from writer Adron Hall. Adron is a jovial, TDD, BDD, get things done well software architect, engineer, coder and jack of all trades. He runs the gamut of dev stack from Ruby on Rails to Node.js to.NET (though his favorite these days is Ruby with a growing admiration for the chaos of JavaScript). He’s passionate about DevOps and loves to get involved in hackathons, user groups, and other tech community events. He tries diligently to keep improving and writes about his adventures at his blog Composite Code.

About the author

Adron Hall is a jovial, proactive, test & code, code & test, get things done well, software architect, engineer, code monkey, coder, and distributed systems advocate. As a coder, Hall plies a polygot language path including C#, Java, JavaScript, and Erlang lately -- as well as Pascal, Basic, Visual Basic, C++, C, COBOL, RPG, CL, and others in the past. He founded with Aaron Gray, Node PDX with Troy Howard, and more startups are in the works. You can read his blog at Composite Code (

Tell us your thoughts Or Send us an internal high five

Talk to @newrelic