In brief
A software architect makes the decisions in a project that are hard and expensive to change later: which parts the system consists of, how it connects to other systems, where it keeps data and how it will meet performance, availability and security requirements. They record each such decision with its rationale and the rejected options, and show the system's structure in a few diagrams. A project needs an architect when the system has many integrations, several teams or regulatory requirements.
Decisions that belong to the architect
The simplest test of whether something is an architectural decision: how much it costs to change your mind a year from now. Choosing a date formatting library is a team decision. Choosing whether payments flow through an event queue or through synchronous calls changes half the system.
| Decision | When it is made | What drives it | Where to record it |
|---|---|---|---|
| splitting into modules or services | before the first stage | number of teams, business domain boundaries | component diagram and ADR |
| how to integrate with other systems | before the first integration | response time requirements, resilience to the other side failing | ADR, API contract |
| where data lives and its model | before the first migration | volume, retention, data regulations | ADR, data model |
| the runtime platform | before the first deployment | availability, cost, team skills | ADR, deployment diagram |
| how quality requirements are met | throughout, at every stage | load, availability targets, security | quality scenarios, tests |
How to choose between microservices and a single system with clear modules is covered in The modular monolith. An architect does not need every answer at the start. They need to know which decisions must be made now and which can safely wait until there is more information.
Documents the architect leaves behind
Architecture documentation has one job: a new team member should understand the system and the reasons behind decisions without hours of meetings. A few artifacts are enough.
- Diagrams in the C4 model. Four levels of detail: system context (who and what talks to it), containers (applications, databases, queues), components inside a container and, rarely, code. Usually the first two levels cover the whole system and the third covers the hardest parts.
- An architecture decision record (ADR) log. A short file per decision: context, decision, consequences, options considered. It lives in the repository next to the code and has a status (proposed, accepted, superseded).
- Quality scenarios. The requirement "the system must be fast" turned into a testable statement, for example "at 300 transfers per second, 95% of API responses arrive in under 500 ms". ISO/IEC 25010 describes nine product quality characteristics, including performance efficiency, reliability, security and maintainability. It makes a good checklist so none is forgotten.
- A technical risk map with an owner and a plan to test each risk, for example a prototype or a load test.
How to write C4 diagrams and ADRs is covered in ADR and the C4 model. ISO/IEC/IEEE 42010 describes what an architecture description should contain, but most projects only need its core idea: the description answers the questions of specific people (management, the team, security, the auditor) and has the right view for each of them.
A short ADR example:
| Field | Content |
|---|---|
| Title | ADR-007: Payment events through a queue instead of synchronous calls |
| Context | the accounting system is sometimes unavailable at night, while payments must be accepted around the clock |
| Decision | the payments module publishes an event, accounting consumes it when available |
| Consequences | posting is not immediate; monitoring of pending events is needed |
| Rejected | a synchronous call with retries: it blocks payment intake when accounting is down |
Architect, tech lead and the team
In many companies the roles of architect and tech lead overlap. It helps to separate them by the reach of their decisions.
| Architect | Tech lead | |
|---|---|---|
| reach | the whole system or several teams | one team and its code |
| decisions | structure, integrations, data, platform | code patterns, code review, task breakdown |
| horizon | years | weeks and months |
| typical document | ADRs, C4 diagrams, quality scenarios | coding standards, technical task descriptions |
The most common failure is an architect who draws diagrams but neither writes nor reviews code. After a few months they lose touch with the system, and the team starts working around their decisions. A good architect spends part of the week with the team: reviewing code where a decision is being implemented, building prototypes, answering questions during planning. They work with the business analyst from day one, because the analyst is the source of quality requirements; that role is described in The business analyst in an IT project.
When a project needs an architect
Not every project needs a full-time architect. A few situations show when it does:
- Replacing a system with many integrations. Each integration is a decision, and their order determines migration risk. That was the case when replacing an ESB with an event platform for payments.
- Several teams working on one product. Someone has to guard the boundaries between modules, or teams start depending on each other with every release.
- Regulatory requirements. A bank or an insurer must show an auditor how the system protects data and what happens during an outage. Answering that is the architect's job.
- Technical debt that slows development down. The architect assesses what to pay off first, as described in Technical debt.
For a simple application with one team, an architect for a few weeks at the start and then for reviews of larger changes is often enough. At B2Bnetwork, architects work in our Analysis and architecture service together with analysts: they turn requirements into a system plan in the C4 model, record decisions in ADRs and split the plan into stages that can be estimated.
Questions and answers
Should an architect write code?
Yes, although they do not have to be the fastest developer on the team. Prototypes, code review where their decisions are implemented and helping with hard bugs keep them in touch with the system. An architect who has not seen the code for a year makes decisions based on diagrams rather than reality.
How do you check whether the architect's decisions were good?
By their effects and by the record. Good decisions have ADRs with the options considered, and quality scenarios are verified by tests, for example performance tests. Warning signs are frequent changes that cut across many modules at once, failures in integrations and a team that cannot explain why the system is built the way it is.
In-house architect or external?
An in-house architect knows the organization and stays for years, which matters for long-term decisions. An external architect brings experience from similar systems and is often needed when replacing a system or adopting a new technology. A combination works well: the external architect leads the key decisions and coaches someone in the company who will take over the role.
How much architecture documentation is enough?
Enough for a new team member to understand the system and the reasons behind decisions within a few days. Usually context and container diagrams, the ADR log and quality scenarios are enough. Documentation nobody updates is worse than none because it misleads, so it is better to have less of it and keep it in the repository next to the code.