What is Continuous Delivery? How is it different from Continuous Deployment? How does it relate to DevOps? We get these questions a lot, so let's clear it up.
There are plenty of definitions for Continuous Delivery, but author and veteran software engineer Martin Fowler’s philosophy is worth taking a look at. According to Fowler, you’re doing Continuous Delivery when:
- Your software is deployable throughout its lifecycle.
- Your team prioritizes keeping the software deployable over working on new features.
- Anybody can get fast, automated feedback on the production readiness of their systems anytime somebody makes a change to them.
- You can perform push-button deployments of any version of the software to any environment on demand.
Fowler’s definition is based on the idea that software is created to fill a business or organization’s need, and must be delivered more frequently and reliably so users can enjoy the benefits. Because in today's world every company relies on software, faster delivery is critical to staying competitive.
Trouble is, trying to speed through traditional Waterfall development usually produces late, buggy software. Most developers and IT professionals know this and are justifiably leery of speeding things up. With traditional methods, they simply aren’t equipped to test software thoroughly enough to release high-quality code.
Continuous Delivery works because it incorporates automation, frequent code releases, testing at every stage, and a pull-based architecture that lets only successful releases through. These practices reduce errors and make it easier to improve the software delivery process.
Automation Is Fundamental to Continuous Delivery
Automation lets you make successful processes repeatable. When you decide to introduce a new feature, make a change to a service or system, or make an adjustment to your infrastructure, automation lets you make the change quickly and safely without introducing the human errors inherent in manual processes.
Frequent Releases Are Enabled by Continuous Delivery
Continuous Delivery means you're releasing code frequently rather than shipping big releases once or twice a year. So you're testing your new code more often against existing code and systems. There’s less change in each release, so it’s easier to isolate and fix problems. It’s also easier to roll back when needed.
Automated Testing Is Also Fundamental to Continuous Delivery
Automated testing lets you catch errors early and stops you from inadvertently passing bad code to the next stage of development.
Continuous Delivery Is Built on Agile Practices
Continuous Delivery is an outgrowth of the Agile movement. Agile seeks to correct the problem of late, large, buggy software releases by promoting iterative, incremental changes to code and collaboration between teams.
A Cultural Shift
Continuous Delivery requires (and creates) a shift in how people think about work culture. Instead of delivering software every six months to a year and spending long periods of time fixing things, teams deliver smaller changes more frequently. Problems can be fixed quickly. IT and dev teams agree that creating, testing, and deploying quality code is a shared responsibility. Everyone is on the same team.
Continuous Delivery works because teams share responsibility for the process, putting an end to siloed teams handing work off to each other. Instead, you’re working together as a single team of people with different skills and responsibilities. Errors and issues become an opportunity to collaborate on improving the process—not an excuse to blame someone else.
Continuous Delivery decreases lead times, meaning new features can be delivered faster since teams don’t have to wait for a semi-annual, big batch release. This has a profound effect on how the product is managed. Product learning is vastly increased since features are delivered sooner. As the pace of learning increases, product experimentation becomes more reasonable. With rapid learning and safe product experimentation, new innovations are developed faster with a more rapid cadence, leading to greater market competitiveness.
Don’t pursue Continuous Delivery just so that you can deliver faster. Do it because it will make your product better.
Continuous Delivery vs. Continuous Deployment
Many use the terms "Continuous Delivery" and "Continuous Deployment" interchangeably, and it’s easy to get them mixed up. Here’s a good way to think about it: Continuous Delivery is set of policies that guarantees code can be deployed rapidly. It involves thorough automated testing in production environments and lets you deploy to users with the push of a button.
Continuous Deployment is the next step. Every bit of code that passes the tests is deployed automatically to production. It’s the ultimate goal for any organization that wants to move software faster.
Of course, not every organization can implement continuous deployment. You may have regulations or other business requirements that prevent you from pushing code to the public so quickly, or that require you to deploy only with human intervention, however lightweight that is.
Continuous Delivery and DevOps
If you want to implement DevOps practices, Continuous Delivery is a must. DevOps is all about aligning IT and software delivery with business goals and strategies—and Continuous Delivery is, too. Once you're able to practice continuous delivery reliably, your team will have the confidence to know that the software it pushes out the door is thoroughly tested and that its intended value is being delivered.
Carl Caum is a senior technical marketing manager at Puppet.