Giter Site home page Giter Site logo

lightweight-architecture-decision-records's Introduction

Lightweight Architecture Decision Records The blog of Peter Evans: Lightweight Architecture Decision Records

"Lightweight Architecture Decision Records is a technique for capturing important architectural decisions along with their context and consequences."

"Lightweight Architecture Decision Records", ThoughtWorks Technology Radar

Making architecture and design decisions

In my experience architecture decisions are often made verbally while gathered around a whiteboard. This is a great way to hash out the design while you’re still exploring the architecture. However, if no record of that process is made six months later most people will be hard pressed to remember the full context and reason why decisions were made and important details will be forgotten.

When joining a team with established systems and software it's often very easy to criticise the way it was designed. However, those decisions may well have been the best course of action given the context and constraints at the time. Documenting these architecture and design decisions and the context they were made in can be a valuable record for future team members and external oversight.

These days many teams favour highly readable code and tests rather than writing extensive documentation. Few engineers enjoy writing documentation so what is the minimum we need to document to maintain an effective record of architecture decisions?

Lightweight Architecture Decision Records

The idea of recording architecture decisions has been written about in various forms for a while, but a version was proposed in this excellent blog post by Michael Nygard.

"An architecture decision record is a short text file in a format similar to an Alexandrian pattern that describes a set of forces and a single decision in response to those forces."

He proposes a short document with just five sections:

  • Title
  • Context
  • Decision
  • Status [Proposed, Accepted, Deprecated, Superseded]
  • Consequences

The beauty of this format is its simplicity. It requires very little training and even engineers skeptical of the value of recording architecture decisions will be able to accept the low effort required.

See this example template.

Tips for using Lightweight Architecture Decision Records

  • Use markdown and store along with the component it relates to in source control
  • Number the files sequentially
  • Keep it brief and use plain, easy to understand language
  • Peer review as you would code
  • For cross cutting decisions that affect multiple components consider making a separate "architecture" repository
  • When you make a decision document it immediately!

Real-world example

This is a real-world example of using Lightweight Architecture Decision Records by GOV.UK for their migration to AWS. https://github.com/alphagov/govuk-aws/tree/master/docs/architecture/decisions

License

MIT License - see the LICENSE file for details

lightweight-architecture-decision-records's People

Contributors

peter-evans avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.