In one corner, we have the Certified Scrum Master, known to his friends as the Extreme Programmer, and to his children as the LeSS SAFe DAD... Agile!
In the other corner, we have the Lean culture machine, who Continuously Delivers his Infrastructure as Code, he's named his left arm dev and his right arm ops... DevOps!
Although I've taken the hype to an extreme, the sound bites about Agile and DevOps can make them sound like very different ideas. Compounding the confusion, both concepts seem to defy definition, even as they have their own jargon and slogans. As the elder, Agile may be less vague, but it's certainly common for people to become frustrated with the myriad of definitions for DevOps. The lack of definition has lead to some common conflation.
Many people think Agile means Scrum and DevOps means Continuous Delivery. This oversimplification creates an unnecessary tension between Agile and DevOps so you may be surprised to find that they are best friends!
There's no denying the historical connection between DevOps and Agile. When Patrick DuBois and Andrew Clay Schafer tried to connect at the Agile 2008 Conference about "Agile Infrastructure", the connection to DevOps was born. Although Patrick later coined the term "DevOps", the Agile Conference continues to honor this connection with a DevOps track. But let's dive deeper than history and consider the practical connections between Agile and DevOps, when we look below the surface of Scrum and Continuous Delivery.
There's more to Agile than Scrum
In some teams, Scrum is the difference between a constant, frustrating struggle and productive, rewarding team work. In others, Scrum replaces politics and overcommitment with objectivity and focus. It can also be embraced as if it were dogma. When the constraints of the business or the work itself demand something different, an agile team will leverage the underlying principles of Scrum, then inspect their practices, and adapt to become more effective. This is particularly important when Scrum is applied outside the context of software development.
Planning for unplanned work
In the DevOps community, those with Agile experience acknowledge that scrum is useful for tracking planned work. Some work in operations can be planned: releasing a big system change, moving between data centers, or performing system upgrades. But much of the work of operations is unplanned: performance spikes, system outages, and compromised security. These events demand immediate response. There's no time to wait for the items to be prioritized in a backlog or for the next sprint planning session. For this reason, many teams that have come to embrace DevOps thinking, look beyond Scrum to Kanban. This helps them track both kinds of work, and helps them understand the interplay between them. Or, they adopt a hybrid approach, often called Scrumban or Kanplan (kanban with a backlog).
In many ways, the key to Scrum's wide adoption may be that it prescribes no technical practices. Scrum's lightweight management practices often make a big difference for a team. Where there was once competing priorities from multiple masters, there is now a single set of priorities in the backlog. And where there was once too much work in progress, there is now a plan constrained by what time has shown is really possible. In combination, these can take a team to new levels of productivity. However, the team may find themselves constrained by the lack of technical practices, such as coding reviews, automated acceptance tests, and continuous integration.
Other Agile processes like Extreme Programming have strong opinions about how technical practices support the team's ability to maintain a sustainable pace and provide transparency and visibility to management and stakeholders. Some Scrum teams resort to putting technical tasks in the backlog. While that fits well within the guidance of scrum, it quickly hits the practical problem of Product Owner bias towards features. Unless the Product Owner is quite technical, she or he may not have the skills to evaluate the cost/benefit of technical practices. That gets even harder for a Product Owner as the technical tasks stretch into operations to support reliability, performance, and security.
Product Owners and Service Owners
At Atlassian, we have recognized that it helps to have two different roles for products we operate. Our Product Owners are good at understanding the features that users need but they are not so good at weighing those features against non-functional capabilities like performance, reliability, and security. So some SaaS products at Atlassian also have a Service Owner, responsible for prioritizing those non-functional capabilities. From time-to-time the two owners may have to do some "horse trading" but most of the time, these can be worked by independent teams. This might not be the only way to "amplify feedback" from operations, but it does help overcome an all-too-common bias in Product Owners about features. This "two owner" approach isn't the only path to DevOps. What's important is understanding these non-functional characteristics as "features" and being able to plan and prioritize them just like any functional user story.
Until DevOps is mainstream, it will not be an organic outcome of scrum. #DoDevOps
Ultimately, none of these criticisms of Scrum are entirely inherent to Scrum itself. As with all Agile methods, Scrum has a built-in "process improvement" mechanism called retrospectives. Hence, it is reasonable to believe that some Scrum teams will draw on DevOps as a source of inspiration and use Scrum retrospective as the opportunity to tune and adjust towards DevOps. However, simply practical to realize that most teams need an injection of outside ideas. Until DevOps is mainstream (perhaps even taught in school), DevOps will not be an organic outcome of Scrum. Whether the team engages an Agile or DevOps Coach is probably immaterial, as long as that person can bring experience in automation across building, testing, and deploying software.
There's more to DevOps than Continuous Delivery
When done well, the discipline of Continuous Delivery (CD) helps to limit work in progress, while the automation of deployment helps to elevate constraints. In this way, CD helps a software team deliver more frequently and with higher quality, instead of having to choose between the two. However, just as teams focusing only on Scrum can miss the broader context of Agile, so too can teams focusing on Continuous Delivery miss the broader context of DevOps.
The practice of CD does not directly address problems in communication between the business and a software team. If the business has a year-long, budget-driven planning cycle, then a team delivering every commit into production may still have to wait months before the business can react. All too often those reactions come as step-functions, like canceling the project, or worse doubling the project team (because a large influx of new people is disruptive).
The Agile Fuency Model indicates the first level of fluency as "Focus on Value", where teams focus on transparency and alignment. Without this fluency, CD can easily devolve into an endless cycle of technical improvement that yields no appreciable value to the business. A team might get good at delivering fast with high quality, but for a product that has low value for end-users or the business. Even when there are many users who say good things, that assessment of low value might only be possible at a larger business portfolio level. Without this important fluency, it is hard to weigh technical practices against features. This is particularly important for a team with a legacy codebase, that may not have automated tests or a design suitable for frequent deployment. In a legacy context, a CD transformation may take years. So it's that much more important to be able to demonstrate business benefit.
The Three Ways
DevOps is more than just automating the deployment pipeline. In the words of John Allspaw, DevOps is about, "Ops who think like devs. Devs who think like ops." Elaborating on that thought, Gene Kim explains The Three Ways as principles of DevOps:
|The first way|| |
|emphasizes the performance of the entire system, as opposed to the performance of a specific silo of work or department — this can be as large a division or as small as an individual contributor.|
|The second way||Amplify Feedback Loops||creating the right to left feedback loops. The goal of almost any process improvement initiative is to shorten and amplify feedback loops so necessary corrections can be continually made.|
|The third way||Culture of Continual Experimentation and Learning||creating a culture that fosters two things: continual experimentation, taking risks and learning from failure; and understanding that repetition and practice is the prerequisite to mastery.|
Continuous Delivery (CD) focuses on The First Way: automating the flow from dev to ops. Automation plays an obvious role in helping to accelerate a deployment system. But there is more to systems thinking than just automation.
The Second Way is characterized by the practice, "Devs wear pagers too." Although the literal use of pagers may not be necessary, it means pulling developers into operational issues. This helps developers understand the consequences of their development choices. For example, that can inspire developers to put log messages in better places and to make those messages more meaningful. It's not just about awareness. Developers also bring their internal understanding of the system to troubleshooting efforts, so a resolution can be found and implemented faster.
The Third Way is about making incremental experiments in the system as a whole, not just as changes to the application moving through the pipeline. In other words, it's relatively easy to see how long automation takes and to use increasingly powerful infrastructure to keep improving it. It's harder to understand how the hand-offs between roles or organizations introduces delays. This means teams "inspect and adapt" across the whole delivery workflow, looking for opportunities to improve human collaboration. For that matter, CD requires a habit of adapting and improving. If the team doesn't reflect on how to become more effective, and then tune and adjust its behavior on anything else, then CD will not grow and thrive either. The team needs to feel empowered to solve their own problems.
In Scrum, each retrospective is an opportunity to improve the practices and tooling. But if the team isn't taking advantage of those opportunities to solve both short-term and long-term technical problems, then they will just wait for the Product Owner to put CD tasks into the backlog, which will never happen.
DevOps is Agile applied beyond the software team
Scrum mainly maps to the Agile principle, "Welcome changing requirements, even late in development. Agile processes harness change for the customer's competitive advantage."
Continuous Delivery mainly maps to the Agile principle, "Our highest priority is to satisfy the customer through early and continuous delivery of valuable software."
That means Agile is more about embracing incoming and outgoing change than about ceremonies like standups and sprint planning. Indeed, there are 10 other principles in the Agile Manifesto. Rather than trying to choose among the principles, they should be considered as a whole. Together these principles represent an attitude towards change that is common for both Agile and DevOps.
DevOps seeks to bring that Agile attitude toward change to a new audience: IT operations. #DoDevOps
These folks have been stuck trying to run fragile systems that are also the most important for the business. Because they are most important for the business, they are also where the most urgent changes are needed. As such, this Agile idea of embracing change isn't "change for the sake of change". It's about holding development accountable for the quality of their changes, while improving the overall capacity to deliver business value. This focus on business value is another aspect shared by Agile and DevOps
Finally, neither Agile nor DevOps are business goals in and of themselves. Both are cultural movements that can inspire your organization with better means for achieving your goals. Agile and DevOps work better in combination, than as adversaries. The trick to avoiding confrontation between these 2 ideas is to understand the deeper values and principles upon which they are formed. Quick, but narrow, definitions lead to siloed thinking. Now that you know there's more to Agile than Scrum, and there's more to DevOps than CD, you're ready to try the powerful Agile + DevOps combination.
Put it into practice
Get serious about agile
What agile project management tools do agile teams need? Explore JIRA Software
Coming up next
Learn scrum with this tutorial
Step-by-step instructions to drive a scrum project, prioritize and organize your backlog into sprints, run the scrum ceremonies and more. Get started
On a related note...
Scrum vs. kanban: what's right for your team?
Read all about the history of kanban, benefits, processes and how it might fight into your agile processes. Dive in