02Chapter 2: Functional requirements: what the system doesThis chapter assumes you know how client-server applications and web APIs work, and that you can read short Python snippets. It covers what a functional requirement is, how to write one that can be tested, and how to tell one apart from a quality target.4 min read
03Chapter 3: Non-functional requirements: how well it does itA functional requirement says what a system does. A non-functional requirement (NFR) says how well it does it: how fast, how reliably, how securely, how cheaply it can be changed. This chapter assumes you know the functional side from the previous chapter, can read short Python snippets, and underst4 min read
04Chapter 4: Eliciting requirements from stakeholdersThis chapter assumes you can tell a functional requirement from a non-functional one, as covered in the previous two chapters. It also assumes you have used a web API and a database. Here you will learn how to find out what a system must do and how well it must do it, before you write either kind of5 min read
05Chapter 5: Actors, use cases and user storiesThis chapter assumes you can tell a functional requirement from a non-functional one. It also assumes you have seen how stakeholders are interviewed to gather requirements. Here you turn that raw material into three working artifacts: a list of actors, a set of use cases, and a set of user stories. 5 min read
06Chapter 6: Setting scope, assumptions and constraintsThis chapter assumes you can already tell functional requirements from non-functional ones, and that you know how requirements are gathered from stakeholders (the people who care about the system). It covers the three kinds of statement that frame those requirements: scope, assumptions and constrain4 min read
07Chapter 7: Making quality targets measurable: SLIs, SLOs, SLAsThis chapter assumes you can read short Python snippets and know what a latency percentile is. You should also know that a service has requests that either succeed or fail. By the end you will be able to turn a vague quality wish such as "the service should be fast" into a requirement that you can m5 min read
08Chapter 8: Performance requirements: latency, throughput, percentilesThis chapter assumes you know what a non-functional requirement is and how SLIs and SLOs frame a measurable target. You should also be comfortable reading short Python snippets. Here you will learn to write performance requirements that a team can measure and test, and to avoid the usual traps in ho6 min read
09Chapter 9: Availability and reliability targetsThis chapter assumes you can read short Python snippets and know what a replica, a load balancer, and a health check are. It also assumes you have met SLIs and SLOs in the previous chapter. Here you turn "the service should almost never be down" into a number, a measurement window, and a design cons5 min read
10Chapter 10: Scalability requirementsThis chapter assumes you can write measurable targets (SLIs and SLOs) and percentile latency requirements from the earlier chapters, and that you can read short Python snippets. It shows how to turn "the system must scale" into a requirement you can test and size.5 min read
11Chapter 11: Consistency and durability requirementsThis chapter assumes you know the difference between functional and non-functional requirements. It also assumes you have met SLIs and SLOs, and that you know what a database replica is. Here you will learn to write two quality requirements precisely: how long data must survive, and what readers are5 min read
12Chapter 12: Security and compliance requirementsThis chapter assumes you can tell functional requirements from non-functional ones, and that you know how SLIs and SLOs make a quality target measurable. You should also know basic HTTP, TLS, and how a service talks to a database.4 min read
13Chapter 13: Maintainability and operability requirementsThis chapter assumes you can already tell functional requirements from non-functional ones. It also assumes you know what an SLO is and can read short Python snippets. Here you will learn to write requirements for the qualities that decide how costly a system is to change and to run, and to write th4 min read
14Chapter 14: Estimating load and storage from requirementsThis chapter assumes you can read short Python snippets and know what a cache, a replica and a read/write split are. You should also have the earlier chapters on scope, assumptions and measurable targets in mind. The goal is to turn the numbers in a requirements document into request rates, storage 4 min read
15Chapter 15: Trade-offs between competing requirementsThis chapter assumes you can classify a requirement as functional or non-functional. It also assumes you can read an SLO such as "99.9% over 30 days" and are comfortable with basic replication and caching ideas. Here you will learn why quality targets pull against each other, how to find the conflic4 min read
16Chapter 16: How requirements drive architecture decisionsThis chapter assumes you can write measurable non-functional requirements (SLOs and percentiles), do the back-of-envelope load arithmetic from the earlier chapters, and read short Python snippets. Here you will turn those requirements into architecture decisions and learn to defend each decision wit5 min read
17Chapter 17: Validating and testing requirementsThis chapter assumes you can already write functional requirements and measurable non-functional requirements (NFRs). It also assumes you know what SLIs and SLOs are and can read short Python snippets. Here you learn how to check a set of requirements before design starts, and how to turn each requi5 min read
18Chapter 18: Worked example: requirements for a URL shortenerThis chapter applies the whole requirements workflow to one system. It assumes you can tell functional from non-functional requirements and know what an SLI and an SLO are. You should also be able to read short Python snippets and have a basic picture of caches and databases. We go from a vague requ5 min read
19Chapter 19: Common mistakes and how to avoid themThis chapter assumes you know the difference between functional and non-functional requirements. It also assumes you can read SLIs, SLOs and percentiles, and can do the back-of-envelope load arithmetic from earlier chapters. Here you will see the errors that most often weaken a requirements document4 min read