InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Continuous Deployment, In Practice

Posted by Mike Bria on Jan 27, 2010

Sections
Process & Practices,
Architecture & Design,
Operations & Infrastructure
Topics
Agile ,
Deployment / Datacenter ,
Delivering Value ,
Delivering Quality
Tags
Monitoring ,
Releases ,
Lean ,
Continuous Integration ,
Continuous Deployment

Continuous deployment, described by Ash Maurya as "a process by which software is released several times throughout the day – in minutes versus days, weeks, or months", has gained a recent buzz in the Lean-slanted "eliminate work-in-progess" movement. But while many may find this an intriguing and logically worthwhile objective, many less can visualize how this might actually be achieved. Ash Maurya helps to fill this gap by describing his experience with making it happen at his company.

Maurya on why his previous 1-week staged release process didn't work for him:

The release process took at least half a day and sometimes the whole day. Dedicating up to 20% of the week on releasing software is incredibly wasteful for a small team. This is not counting the ongoing coordination effort also needed in prioritizing the ever-changing release content for the week as new critical issues are discovered.

His transition started by following the advice in Eric Reis' 5 step continuous deployment primer, which helped him get his tools in order. From there his story centers around what he considered the most challenging aspect: simply "getting comfortable with releasing all the time."

[We] took things easy at first - made small changes and audited the release process maniacally. I started relying heavily on functional tests (over unit tests) which allowed me to test changes as a user would. I also identified a set of events that would indicate something terribly going wrong (e.g. no users on the system) and built real-time alerting around them (using nagios/ganglia). As we built confidence, we started committing bigger and multi-part changes, each time building up our suite of testing and monitoring scripts. After a few iterations, our fear level was actually lower than how we used to feel after a staged release. Because we were committing less code per release, we could correlate issues to a release with certainty.

Maurya describes his Continuous Deployment process with the following principles/practices:

  • "Don’t push features": a fundamental Lean mantra. Let customer feedback about your MVP "pull" new features onto your radar
  • "Code in small batches": for Maurya, 2 hour coding sessions that result in check-in (which triggers the automated build)
  • "Prefer functional tests over unit tests whenever possible": Muarya uses Selenium
  • "Always test the User Activation flow": be absolutely sure your user's "critical path towards initial gratification" is working
  • "Utilize automagic software updates": users should be able to receive updates as seamlessly as possible; Maurya describes exactly how he does this for his OSGI-based application
  • "Build in alerts and monitoring": Maurya uses nagios and ganglia to get notified of any abnormal dips in system usage
  • "Build in application level diagnostics": an application that can check its own health to find things tests and users might not be able to tell you
  • "Tolerate unexpected errors exactly once": take the time to understand root causes and implement real fixes

If this interests you, take a moment to read Maurya's full experience report summarized here.

  • This article is part of a featured topic series on Agile

Related Sponsor

In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!

No comments

Watch Thread Reply

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.