Design for Understandability

Building Secure and Reliable Systems Ch 6 — designing systems whose behavior is predictable, whose failure modes are obvious, and whose mental models do not decay over time.

Overview

You cannot fix what you cannot understand

*Building Secure and Reliable Systems* Chapter 6, Design for Understandability, argues that the main cause of extended incidents is not technical complexity but operational incomprehensibility. The on-call engineer cannot diagnose and remediate what they cannot understand.

Three things make a system understandable. Its invariants are checkable truths. The engineers' mental models of it stay correct as the system evolves. And it follows the principle of least surprise, with no hidden state and no side effects. A system with all three is understandable, and an understandable system has shorter incidents.

> [!IMPORTANT] Design APIs that are hard to misuse. A function whose caller must understand implementation details will eventually be misused in production.

Key concepts

  • System invariant
  • Mental model
  • Least surprise
  • Explicit state machine
  • Typed errors

Interview questions

  • What makes a distributed system "understandable" and why does understandability reduce MTTR?

Sign up free to read the full topic

More SRE topics

Start free on Cariara · Coding problems · System design studio