Skill 6.2.2
Apply cost as a non-functional requirement and record trade-off decisions
Key Concepts
Treating cost as a non-functional requirement means stating a cost target next to performance, availability and security requirements, for example "no more than USD 0.002 per API request at 1,000 requests per second". The target guides design and becomes a test that the implementation can pass or fail.
An architecture decision record (ADR) documents a significant decision: the context, the options considered, the expected cost, speed and quality impact of each, the decision and its consequences. Recording cost assumptions in ADRs means that when real billing data arrives, the team can check whether the assumption held.
Decisions that are expensive to reverse, such as three-year commitments, data platform choices or multi-region architectures, deserve more analysis than decisions that can be changed in a day, such as an instance size.