Skills / DevOps and CI/CD / What DevOps means

DevOps and CI/CD, lesson 1 of 8

What DevOps means

In many organisations, developers wrote code and "threw it over the wall" to an operations team who had to run it. Releases were rare, big and risky, and when something broke each side blamed the other. DevOps is a set of practices and a culture that brings development and operations together so teams can ship small changes often and safely.

Core ideas:

  • Small, frequent releases. Shipping one small change is easy to test and easy to undo. Shipping three months of changes at once is neither.
  • Automate everything repetitive. Building, testing, deploying and creating servers are done by scripts and pipelines, not by hand. Automation is faster and does the same thing every time.
  • Everything in version control: code, configuration, and even the servers themselves (infrastructure as code).
  • Measure and monitor. You cannot improve what you cannot see: track errors, speed and usage, and alert someone when they go wrong.
  • Shared responsibility. The team that builds a service helps run it, so they feel the pain of fragile code and fix it.
  • Learn from failure without blame. After an incident, ask what in the system allowed it, not who to punish.

Useful measures of how well a team delivers:

  1. How often you deploy
  2. How long a change takes to go from code to production
  3. What share of changes cause a failure
  4. How quickly you recover when something breaks

The pipeline. Most DevOps work centres on a CI/CD pipeline: every change is automatically built and tested (continuous integration), then released when it passes (continuous delivery or deployment).

Try it: Think of a team project you have done (any kind). Name one thing that was done by hand repeatedly and could have been automated, and one change that would have made releases or hand-offs smaller.

Check yourself

1. Why do DevOps teams prefer small, frequent releases?

2. After an incident, what does a blameless review focus on?

3. What does continuous integration do?