Mercado Tech Brasil

Define non-functional requirements in solutions architecture: see examples

Published on · Solutions Architecture · by William Garcia

Checklist on a clipboard on a desk
Photo: Milan Ivanović · WordPress Photo Directory (CC0, public domain)

This is article 2 of 10 in the Mercado Tech Brasil series on solutions architecture. The topic now is non-functional requirements: the demands that do not show up on the feature list but decide whether the solution will hold up under real use.

Functional and non-functional: what's the difference

A functional requirement describes what the system does, for example: "the manager approves or rejects the request for access to an internal system." A non-functional requirement describes how it needs to behave while doing that: how fast it responds, how many requests it handles at the same time, who can see the data and what happens if one part goes down.

Functional requirements usually arrive ready-made from the business. Non-functional ones almost never do, and that is where the risk lies. An approval flow that works fine with ten people can freeze with a thousand, or expose information that only a few should see.

The most common non-functional requirements in solutions architecture

  • Performance: response time and volume processed per period.
  • Scalability: the ability to grow without rewriting the solution.
  • Availability: for how long and during which hours the service needs to be up.
  • Security and privacy: authentication, access control, encryption and compliance with the LGPD.
  • Maintainability: how easy it is to fix, test and evolve.
  • Observability: the ability to understand what is happening in production.
  • Interoperability: how easily it talks to other systems.
  • Operating cost: how much infrastructure and team effort the solution consumes to run.

How to write measurable non-functional requirements

"The system must be fast" is not a requirement; it is a wish. A useful requirement describes a situation, the context in which it happens and a measure that tells you whether it was met. Some examples for the same approval flow:

  • "During business hours, checking the status of a request responds within two seconds in the vast majority of cases."
  • "If the email service is down, notifications wait in a queue and are sent when it comes back, with no loss."
  • "Only the direct manager and the security team can view the history of each request."

This format, known as a quality scenario, turns a vague conversation into something that can be tested, monitored and held to account.

Prioritize, because you can't have it all

Quality attributes compete with each other. More security can add steps and response time. More availability requires redundancy and more complex operations. Ask the areas involved to rank the attributes by importance. That ranked list will guide every trade-off we discuss in the upcoming articles.

Questions for gathering requirements in solutions architecture

  • How many users and transactions do we expect today and two years from now?
  • Is there seasonality, such as month-end closing, campaigns or holidays?
  • What is the impact on operations if the solution is down for an hour?
  • What personal data passes through the flow, and for how long must it be kept?
  • What limits do existing systems impose, such as processing windows or API call quotas?

In practice

In my consulting projects, I set aside a short workshop just for non-functional requirements, with business, IT and security in the same room. The answers become measurable scenarios that go into the agile backlog as acceptance criteria and, later, turn into monitoring alerts. That way, what was agreed at the start keeps being checked after go-live.

Read also: Choose between monolith or microservices in solutions architecture: see how

Translated from the original in Portuguese. Read the original.