Going Fast? Bring Discipline!

Agile or just fast? The next turn will tell.

Agile or just fast? The next turn will tell.

We all have our pet peeves or hot buttons, things that we’ve come across often enough that, despite their insignificance, really annoy us. In private life, these issues tend to revolve around things like toothpaste tubes: cap off versus cap on, or squeezed from the bottom versus from the middle. Such differences have been known to put numerous marriages and live-in relationships in danger (hint: a second tube runs about $1.99).

In the corporate IT world, pet peeves tend to be related to things more technical in nature. Mine is people using the word agile without having understood its meaning, almost two decades after the Agile Manifesto was authored. Surely you have overheard conversations like the following:

  • What’s your next major deliverable? Dunno—we are Agile !

  • What’s your project plan? Because we are Agile , we are so fast that we couldn’t keep the plan up to date!

  • Could I see your documentation? Don’t need it—we are Agile !

  • Could you tell me about your architecture? Nope— Agile projects don’t need this!

And when one dares to ask how the teams know that they are Agile, you’re sure to hear the following response:

  • We are guaranteed to be Agile because we’re officially certified!

Such ignorance is topped only by statements that Agile methods aren’t suited for your company or department because they are too chaotic for such a structured environment. Ironically, the opposite is usually the case: corporate environments often lack the discipline to implement Agile processes.

Fast Versus Agile

My first annoyance about the widespread abuse of the word agile is repeatedly having to remind people that the method is called “Agile,” not “fast,” and for a good reason. Agile methods are about hitting the right target through frequent recalibration and embracing change rather than trying to predict the environment and eliminating uncertainty. Firing from afar at a moving target is fast, but not Agile: you will likely miss. Agile methods allow course corrections along the way, more like a guided missile (though I am not fond of the weapons analogy). Agile quickly gets you where you need to be. Running in the wrong direction faster isn’t a method, but foolishness.

Speed and Discipline

When observing something that moves fast, it’s easy to feel a sense of chaos: too many things are happening at the same time for someone to judge how it all really fits together. A good example is a Formula 1 pit stop: screech , whir , whir , roar , and the car has four new tires in under four seconds (refueling is no longer allowed in F1 racing). Watching this process happening at such high speeds leaves one feeling slightly dizzy and that it’s some sort of miracle or in fact a bit chaotic. If you watch the procedure a few times, ideally in slow motion, you can appreciate that few teams are more disciplined than a pit stop crew: every movement is precisely choreographed and trained hundreds of times. After all, at F1 speed a second longer in the pit means lagging almost 100 meters behind.

Moving fast in the IT world likewise requires discipline. Automated tests are your safety belt—how else would you be able to deploy code into production at a moment’s notice, e.g., in case of a serious problem? The most valuable time for an online retailer to deploy code is right in the middle of the holiday season, when customer traffic is at its peak. That’s when a critical fix or a new feature can have the biggest positive impact on the bottom line. Ironically, that’s exactly the time when most corporate IT shops impose a “frozen zone,” during which they forbid the deployment of code changes. Making a code push in peak traffic takes confidence. Having iron discipline and lots of practice can make you more confident and fast. Fear will slow you down. Confidence without discipline will make you crash and burn.

Fast and Good

Agile development overcomes the perception that things are either fast or of high quality by adding a new dimension ( Chapter 40 ). This admittedly makes it difficult to really grasp the concept without seeing it in action. I often claim that “Agile cannot be taught, it can only be shown,” meaning that you should learn Agile methods by working on an Agile team, and not from a textbook.

I describe the attributes required for fast software development and deployment as follows:

Velocity

Development velocity assures that you can make code changes swiftly. If the code base is fraught with technical debt, such as duplication, you will lose speed right there.

Confidence

Once you made a code change, you must have the confidence in your code’s correctness, e.g., through code reviews, rigorous automated tests, and small, incremental releases. If you lack confidence, you will hesitate, and you can’t be fast.

Repeatable

Deployment must be repeatable , usually by being 100% automated. All your creativity should go into writing great features for your users, not into making each deployment work. Once you decide to deploy, you must depend on the deployment working exactly as it did the last 100 times.

Elastic

Your runtime must be elastic because once your users like what you built, you must be able to handle the traffic.

Feedback

You need feedback from monitoring to make sure you can spot production issues early and to learn what your users need. If you don’t know in which direction to head, moving faster is no help.

Secure

And last but not least, you need to secure your runtime environment against accidental and malicious attacks, especially when deploying new features frequently, which may contain, or rely on libraries that contain, security exploits.

In unison, these qualities make for a disciplined but fast-moving and agile development process. People who haven’t seen such a process live often cannot quite believe how liberating it is to work with confidence. Even with the 15-year-old build system for my Enterprise Integration Patterns website I don’t hesitate for a second to delete all build artifacts to rebuild and redeploy them from scratch.

Slow-Moving Chaos

If high speed requires high discipline (or ends up in certain disaster), is it true then that slow speed allows sloppiness? While not logically equivalent, the reality shows that this is usually the case. Once you look under the cover of traditional processes, you realize that there’s a lot of messiness, rework, and uncontrolled black markets ( Chapter 29 ). For example, US auto plants in the 1980s apparently dedicated up to one-quarter of the floor space to rework. 1 No wonder Japanese car companies came in and ate their lunch with a disciplined, zero-defect approach, which acknowledged that stopping a production line to debug a problem is more effective than churning out faulty cars. These manufacturing companies were disrupted 30 years ago much in the same way digital companies are disrupting slow and chaotic service businesses now. Hopefully, you can learn something from their mistakes!

Alarmingly, you can find the same level of messiness in corporate IT: why would it take two weeks to provision a virtualized server? For one, because most of this time is spent in queues ( Chapter 35 ), and second, because of “thorough testing.” Hold on, why would you need to test a virtual server that should be provisioned in a 100% automated and repeatable fashion? And why would it take two weeks? Usually because the process being followed isn’t actually 100% automated and repeatable: a little duct tape is added here, a little optimization is done over there, a little script is edited, and someone forgot to mount the storage volumes. Oops. That’s one reason to never send a human to do a machine’s job ( Chapter 13 ).

Once you look under the veil of “proven processes,” you quickly discover chaos, defined as a state of confusion or disorder. It’s just so slow moving that you have to look a few times to recognize it. A good way to test for chaos is to request precise documentation of the aforementioned proven processes: most of the time it doesn’t exist, is outdated, or is not meant to be shared. Yeah, right…

ITIL to the Rescue?

If you challenge IT operations about slow chaos, you will likely receive a stare of disbelief and a reference to ITIL, 2 a proprietary but widely adopted set of practices for IT service management. ITIL provides common vocabulary and structure, which can be of huge value when supplying services or interfacing with service providers. ITIL is also a bit daunting, consisting of five volumes of some 500 pages each.

When an IT organization refers to ITIL, I am generally suspicious whether there’s a gap between perception and reality; i.e., does the organization really follow ITIL, or is this label used to shield further investigation into the slow chaos? A few quick tests give valuable hints: I ask a sysadmin which ITIL process they primarily follow. Or I ask an IT manager to show me the strategic analysis of the customer portfolio described in section 4.1.5.4 of the volume on service strategy. Most of the time we find that the ITIL ideal and the ITIL reality differ dramatically.

Note

I prominently displayed a set of ITIL manuals in my office to thwart anyone’s temptation of hand-waving their way through a conversation.

ITIL itself is a very useful collection of service management practices. However, just like placing a math book under your pillow didn’t get you an “A” grade in school, simply referencing ITIL doesn’t repel slow chaos.

Objectives Require Discipline

Many organizations are managed by objectives and grant teams autonomy in achieving these objectives. While this in general is a sound approach, it can fail spectacularly in organizations that lack discipline, because teams may use any means to achieve the objective, compromising on base values such as quality. If reaching objectives by any means is rewarded, result-oriented objectives can actually cause a lack of discipline.

Note

A provider’s large datacenter migration project had been set a clear goal of migrating a certain number of applications into a new datacenter location (a quite sensible objective). Alas, the provider had difficulties reliably provisioning servers in the new datacenter, causing many migration issues. To drive out this issue first, I suggested creating an automated test that repeatedly placed orders for servers in a variety of configurations and validated that all servers were delivered to spec. We would then start application migration once reliable provisioning was proven. The project manager exclaimed that if they did that, they’d never migrate a single application in 10 years! The team preferred to migrate applications regardless of their underlying problems, just so that they could achieve the project objective.

Setting output-oriented objectives therefore requires an agreed-upon discipline as a baseline for achieving those objectives. This is why the Prussian ideal of Auftragstaktik ( Chapter 27 ) depended on active discipline: increasing an organization’s discipline allows more far-reaching and meaningful objectives to be set.

The Way Out

You may be asking yourself: why does no one clean up the slow chaos? Many traditional but successful organizations simply have too much money ( Chapter 38 ) to really notice or bother with it. They must first realize that the world has changed from pursuing economies of scale to pursuing economies of speed ( Chapter 35 ). Speed is a great forcing function for automation and discipline. For most situations besides dynamic scaling, it’s OK if provisioning a server takes a day. But if it takes more than 10 minutes, you know there’ll be the temptation to perform a piece of it manually. And that’s the dangerous beginning of slow-moving chaos. Instead, let software eat the world ( Chapter 14 ) and don’t send humans to do a machine’s job ( Chapter 13 ). You’ll be fast and disciplined.

1 John Roberts, The Modern Firm: Organizational Design for Performance and Growth (Oxford: Oxford University Press, 2007).

2 “ITIL—IT service management,” Axelos (website), https://oreil.ly/PN_Mj .