Skip to Content

AppZero

Drupal

In Practice: From your machine, to EC2, and back in 1 minute

Agile development and deployment workflow

This series describes a development and deployment process optimized for the needs of software-as-a-service in terms of cost structure, agility, staging and test requirements.  The resulting system will tolerate the failure of a local hard drive and crashes of a machine - physical or virtual.  Offering good performance / low cost via Amazon's EBS and EC2 services, the system will provide the ability to rollback changes both on the deployed and development system (independently or together) using Subversion.

You can enjoy instantaneous feedback when you are developing code without affecting existing users of your website by using a two machine development and deployment lifecycle.  Deployment can be a 5 second experience (as opposed to 5 minutes) using AppZero technology.

I have tried a number of lifecycle workflows for the development and deployment of Drupal websites. In this series, I will describe a two machine approach involving a local development and test machine and a deployment machine. Deployment of files will use the Subversion Version Control System; the local machine is Windows to make tools like Photoshop convenient to use; the deployment machine is a Windows machine from EC2; and we will use Apache, Drupal, and MySql.

The one-machine approach, topologically simplest, involves developing directly on the deployed machine on the Internet. I've found this approach, while seemingly simple, to have two serious deficiencies:

  • developing a new feature for a site can often involve accidentally breaking existing functionality or look-and-feel. This topology makes it difficult to evolve a site without showing the public every intermediate change.
  • tools like Photoshop  are not convenient to use on a remote basis and ftp'ing files back and forth is a cumbersome process. Even text editing on a remote machine incurs painful latencies.

For these two reasons, I advocate at least a two machine approach. This allows you to develop on your local machine, disconnected from the Internet if necessary, with all the tools you like, and deploying when you desire. Of course, in a two machine topology approach, deployment agility becomes paramount. The difference between 5 seconds to deploy and 5 minutes makes the difference between wonderful and painful.

In Practice: Agile and Scalable Site Development with Drupal, Appzero, and EC2.

Like a lot of folks, I'm excited about the possibilities that arise when you combine the agility of modern CMS's (like Drupal and Wordpress) with the scalability and administrative control offered by Compute Clouds (like Amazon EC2 and GoGrid).

In my work as VP of Technology here at AppZero, I've had the opportunity to work with a number of web site and web app developers who are trying to realize this potential. I've seen first hand that there are a lot of unwritten, but critical, details we must know to capitalize on this power.

This entry is the start of a blog series in which I'll share my viewpoint -- and I welcome your participation.

I'm going to kick off this series by sharing my experiences in developing, deploying, updating, and scaling out a Drupal installation in Amazon's EC2 Compute Cloud. I'll let you know what's worked and what's failed. I'm hoping I can make your life a little smoother so you can avoid some of the pain we've gone through -- and get right to the good part.

I'll be writing at least one entry a week.  Here's my plan:

Part 1: An agile development and deployment workflow: from your machine, to EC2, and back in 1 minute.
Part 2: Getting Drupal on your Windows machine in 5 minutes.
Part 3: Developing your site.
Part 4: Provisioning an EC2 machine.
Part 5: Moving your Drupal development site to the EC2 machine.
Part 6: Updating your Website and redeploying in a matter of seconds.
Part 7: Scaling out your website.
Part 8: Concluding comments.

Join me on this journey by commenting on the blog or writing me directly at chu@appzero.com.

 

Syndicate content