Architecture Characteristics
Features say what the system does. Characteristics (quality attributes) say how well it must do it: how fast, how available, how easy to change. Find them in three places, write each one as a measurable scenario, keep only the top few, and accept that they pull against each other.
Author: bezzad
Contents
The problem: “It must be fast, scalable and secure”
Our online shop is growing. The product manager sends one line for the new checkout: “It must be fast, scalable and secure.”
Every system wants to be fast, scalable and secure. So this line tells the architect nothing. It cannot be tested, and it does not say what to give up when two goals conflict.
In this lesson we turn such a line into clear, measurable goals.
Features and characteristics
A system has two kinds of needs:
- Features (functional requirements). What the system does. “A customer can pay for an order.”
- Characteristics (quality attributes, or non-functional requirements). How well the system does it. “Payment works even when one data center is down.”
You can build the same features in many ways: one small app, or fifty services. The features do not choose between them. The characteristics do. This is why architects spend so much time on them.
A need is an architecture characteristic when all three are true:
- It is not a business feature.
- It changes the structure of the system (how we split it, where data lives, how parts talk).
- The project fails without it.
“The report must have a blue header” is not one. “The shop must handle ten times more orders on Black Friday” is one, because it changes how we build checkout.
Common characteristics
There are dozens of them. It helps to put them in three groups:
| Group | Examples | A simple question |
|---|---|---|
| Runtime | Availability, performance, scalability, elasticity, reliability | How does it behave while it runs? |
| Structure | Modifiability, testability, deployability, extensibility | How easy is it to change and release? |
| Cross-cutting | Security, usability, accessibility, interoperability | What touches every part? |
A few words that people mix up:
- Scalability means the system can handle more load if we add resources. Elasticity means it can grow and shrink quickly for a short peak, like a flash sale.
- Availability is the share of time the system answers. Reliability is how often it does the right thing (no lost orders, no wrong prices).
- Modifiability is how cheap a change is. Deployability is how easy and safe a release is.
Where do characteristics come from?
- Written requirements. Sometimes the numbers are written: “5,000 orders a minute at lunch time”.
- Business goals. People say goals in business words. The architect translates them:
- “We must beat competitors to market” means deployability and testability.
- “We change prices every week” means modifiability of the pricing part.
- “We are buying other shops” means interoperability and extensibility.
- Things nobody writes. Nobody writes “do not lose orders” or “keep passwords safe”. Everyone expects them. The architect must name them anyway.
To find them, use short interviews and workshops with the business, operations and support people. A checklist of common characteristics helps you not to forget one.
Make each one measurable: the quality scenario
“Fast” is a wish. A quality scenario is a test. It has six parts:
- Source. Who or what causes the event?
- Stimulus. What happens?
- Environment. In which situation? Normal day, peak, during a failure?
- Artifact. Which part of the system?
- Response. What should the system do?
- Measure. How do we know it worked? A number.
A second example, for availability:
- One database server dies (source and stimulus) during the evening (environment).
- The checkout (artifact) moves to the standby server (response).
- Customers see errors for at most 60 seconds, and no paid order is lost (measure).
And one for modifiability:
- A developer (source) must add a new payment provider (stimulus).
- The change touches only the payment module (artifact and response).
- It takes less than three days, with no change in the order module (measure).
Keep only the top few
Each characteristic you support costs money and makes the design more complex. If you try to support all of them, you get a design that is good at nothing.
- Make the long list.
- Ask the business to rank it. A simple way is MoSCoW: Must, Should, Could, Won’t.
- Keep about three as the drivers of the design. The others still matter, but they do not decide the structure.
A good trick: do not ask “is security important?”. Everyone says yes. Ask “if we can have only one of these two, which one?”
Characteristics pull against each other
This is why there is no “best” architecture, only the least bad one for this list of drivers. When two drivers conflict, the architect:
- Shows the cost of each side with numbers.
- Lets the business choose.
- Writes the choice and the reason in an ADR, so nobody repeats the debate.
Different parts, different needs
The whole system does not need the same numbers. In our shop:
| Part | Availability | Speed | Consistency |
|---|---|---|---|
| Checkout and payment | Very high | p95 under 300 ms | Strong: no double payment |
| Product search | High | p95 under 200 ms | A few minutes old is fine |
| Product reviews | Normal | A second is fine | A few minutes old is fine |
When parts have very different needs, that is a good reason to give them separate deploy units. Then checkout can have many servers and strict rules, while reviews stay cheap and simple. A part of the system that is deployed alone, with its own characteristics, is sometimes called an architecture quantum.
Keep them alive
Characteristics are not written once. Business changes, so the ranking changes too:
- Review the list when the business changes, for example a new market or a big new customer.
- Check the numbers automatically, in tests and in monitoring. The lesson on fitness functions shows how.
Common mistakes
| Mistake | Result | The right way |
|---|---|---|
| Vague words like “fast” or “scalable” | Nobody can test it; endless debate. | A scenario with a number. |
| Trying to support every characteristic | A complex, expensive design. | About three drivers, ranked by the business. |
| Only the architect decides the list | The business does not trust the choices. | Workshops with business, ops and support. |
| Forgetting the unwritten ones | A data leak or lost orders after launch. | Use a checklist; name them anyway. |
| One set of numbers for the whole system | Paying for high availability everywhere. | Different numbers per part. |
Summary in six lines
- Features say what; characteristics say how well. Characteristics shape the architecture.
- They come from written requirements, business goals and unwritten expectations.
- Write each one as a scenario with a source, stimulus, environment, artifact, response and a measure.
- Keep about three drivers, ranked by the business.
- Characteristics conflict; show the cost and write the choice in an ADR.
- Different parts can have different numbers, and that can be a reason to deploy them separately.