Chapter 1. Introduction to DevOps and the Internet

DevOps is a term that has many different and varying definitions, but at its core it is simply the creation of a culture within an organization that promotes efficiency and reliability by bridging the gap between development, QA, and operations.

Before going into any detail about how DNS relates to and can be used within a DevOps environment, it is worth taking a short time to reiterate the background and the principles that are at the core of the DevOps movement, and the impact that this movement has had on companies that have implemented it.

Background

Traditionally, software was built by one group of people, development, tested by another group, QA, and maintained by a third group, operations. Each of these groups was siloed and focused on different deliverables. Development focused on writing code to implement functionality, QA focused on ensuring there were no issues with the code, and operations focused on ensuring that platforms remained available.

The result was that the progression of functionality to production was often slow, and typically only a small number of large deploys per year were made. The division in responsibility often led to finger-pointing when problems arose.

Through the early 2000s, the Agile development movement made great strides forward in improving the process by which software was developed. The movement broke down barriers between business users, business analysts, development, and QA to develop deployment-ready software much more regularly and efficiently.

One of the key elements of any Agile process is the importance put on the value being created by any development effort. Crucially, that value is only ever seen once software is in production and in use by end users. This leads to the creation of a steady stream of production-ready pieces of functionality waiting to be deployed.

Automated testing and continuous integration tooling made the process of validating software as production-ready much shorter.

The DevOps movement evolved to take the same types of thinking into the operational management of systems. This includes not only technological advances such as virtualization, cloud systems, and deployment, automation that simplify the process and repeatability of deployment but also the human elements such as closer integration between development and operations teams much earlier in the development process (Figure 1-1).

Where Devops fits into traditional organisational structure
Figure 1-1. Illustrating how DevOps relates to a traditional organization structure, taken from https://en.wikipedia.org/wiki/DevOps

Key DevOps Principles

DevOps is much more than just the combination of development and ops. It is also a new way of thinking about ops as much more of a proactive, rather than a reactive way of managing servers. Freeing up time spent doing manual processes and dealing with issues allows operations people to spend that time creating systems that will dynamically respond to alert situations, or creating more proactive monitoring services to mitigate future risk of failure.

In many ways DevOps is a trade-off. The up-front work done to mitigate future issues is sacrificed in favor of allowing change and having systems in place to monitor and measure system behavior to quickly identify problems as they arise.

While this may sound more risky, it is worth reminding ourselves that for all the effort put in by traditional operations approaches to minimize the risk of issues arising, issues did arise fairly regularly, and the impact of resolving those issues was usually higher than in a DevOps world.

DevOps is not a job title or a set of tools or even a methodology. It is simply a culture or way of working that emphasizes certain core values. As such, there is no defined set of practices and tools that incorporate DevOps; it is more a set of principles.

The core principles have been defined in many different ways, though all definitions share the same common themes and can generally be categorized in the following three principles:

  • Integration and communication
  • Automation and repeatability
  • Big picture thinking

Integration and Communication

This is the core principle to DevOps: breaking down walls between teams and getting people to work together as colleagues, not competitors.

Firstly, this will remove the blame culture—the approach in any situation being to blame others until proven otherwise. Shared responsibility will enable a quicker resolution as the team works together to solve a problem.

Secondly, this will get potential issues spotted earlier on and a more proactive solution design will be undertaken.

Building a cross-functional team and working toward a shared objective focused on business objectives rather than silos focused on protecting their own interests can only result in a better outcome for the business.

Automation and Repeatability

Repeatability of process is one of the core tenets of DevOps. Just as in Agile development, the rule “if something is hard to do, do it early and do it often” applies.

This means that not only should your applications be easy to deploy, your infrastructure should be easy to recreate, ideally using a fully automated process. This involves a change in mindset: from infrastructure management as a process of manually installing and configuring hardware and documenting the process, to infrastructure management being the process of managing scripts that will dynamically create and configure your infrastructure, usually within a virtualized or cloud environment.

The result is that infrastructure creation code can be managed in the same manner as other development source code, and test platforms can be created automatically as part of a test or production deployment system.

Big Picture Thinking

Developers want to solve all problems with code, DBAs want to solve all problems in the database layer, and operations wants to solve all problems with hardware. That is the nature of thinking when in a very siloed world.

By bringing the teams closer, this issue is mitigated in two ways:

  1. Earlier involvement of people with specialities so that all specialities have input into a solution.
  2. More knowledge sharing and appreciation of the elements of the system outside of their expertise, allowing people to understand the potential for solutions in these areas.

As systems become more complex and the options available for system expansion become more varied, this becomes ever more important. For example, when running in a cloud environment, performance issues can be addressed by either code investigation or by increasing the size of the production environment. Likewise, SaaS offering can negate the need for writing code, running infrastructure, or both.

Benefits of Using DevOps

However, the benefits of using the DevOps approach are not just theoretical. Organizations that follow DevOps principles often report improvements in both speed and reliability.

One report stated that 63% of organizations using DevOps reported that they release software more frequently, while another report stated that organizations using DevOps reported deploying 30 times more often than traditional organizations.

Similarly, 63% of companies reported seeing a better quality of software deployments. A mean time to recover investigation showed that these organizations saw 60 times fewer failures and could recover 168 times faster.

Moving to a DevOps culture also frees up operations time to focus on improvements rather than firefighting, with traditional operations reporting spending 21% more time putting out fires whereas DevOps spends 33% more time on infrastructure improvements.

DevOps and the Cloud

DevOps and cloud are two completely independent aspects of software delivery. You can deliver software using cloud platforms via traditional organizational structures and have a complete DevOps culture without using any cloud-based platforms; however, cloud platforms do make enacting the DevOps principles easier in many cases.

Cloud platforms generally blur the distinction between development and ops, as they are systems that are designed for automation and management via code-level APIs or scripting. Operational changes can be implemented by developers within application code, and operations people are writing code to manage how environments become available for use by applications.

The big picture, in this case, becomes not only the application but also the range of services offered by cloud providers that could be used by the applications, how these would be implemented, and the communication between systems.

Cloud environments have really enabled DevOps to become mainstream as the level of dynamic infrastructure creation and management needed for a true DevOps environment has become not only possible and affordable to organizations of all sizes, but actually the preferred way of working in those environments.

Automation, repeatability, creation and destruction of environments, and infrastructure as code are all elements that have been built into cloud platforms from the ground up.

Role of the Internet in Modern Systems

It may sound obvious to say that modern internet-based systems are dependent on the internet, but it is worth taking a moment to think about the actual impact this is having as systems become more complex, modular, and cloud based.

Before the internet was widely used, most systems were delivered as client/server systems over a leased line-based WAN. So everything was fully under your control; the full end-to-end connectivity and infrastructure were all dedicated to you.

However, this situation is very rare these days. Most connectivity now travels over the public internet. This is true of the connection between your users and your system, and increasingly between your system and third-party dependent services. The quality of this connectivity is largely beyond your control.

Moving into the cloud, however, gives you even less control over the connectivity in and out of your systems. When hosting systems within a data center, you can discuss and understand the nature of connectivity to the internet that are in place and use this as a deciding factor when choosing a data center. In the cloud this level of detail is rarely made public.

Despite its increased importance to people running web-based systems, the performance of the public internet is an area that is often overlooked.  

Takeaways

  • DevOps is an evolution of movements such as Agile development and continuous delivery designed for optimizing the throughput and reliability of complex systems.
  • DevOps is not a process, set of tools, or a methodology, but a culture based around three key principles:
    • Integration and communication
    • Automation and repeatability
    • Big picture thinking
  • DevOps is showing major improvements in speed and reliability for companies adopting it.
  • DevOps and the cloud are two completely separate technical advances but are well suited to be used together.

Get DevOps and DNS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.