Software Architecture Document: What to Include and How to Write One

You open the architecture document before changing a service, and the diagram raises more questions than it answers. A box has the old service name. The deployment section describes staging. Someone chose the shared database for a reason, but the decision lives in a conversation you can't find.
A useful software architecture document gives you enough context to make that change responsibly. It explains the system's shape, the constraints behind it, and where to find details. This guide covers the sections to include, how to choose views, and a template you can adapt without turning documentation into a separate project.
What is a software architecture document?
A software architecture document describes a software system's key parts, how they interact, and the decisions and constraints that shape them. It brings together views of the system for the people who build, operate, review, and change it, with links to the supporting specifications and decision records.
Think of it as the entry point to your system architecture. It should help a new engineer locate the order-processing boundary or help an operator understand which external service a failure path depends on.
ISO/IEC/IEEE 42010 distinguishes an architecture from the description expressing it. It doesn't prescribe a document format or authoring tool. A maintained set of linked pages can serve the purpose; a single Word file is one possible packaging choice.
Who reads it and what it is for
Before choosing a template, write down the questions people will bring to the document. Different readers need different routes through the same system:
- Engineers changing a feature need boundaries, interfaces, data ownership, and decisions that constrain the change.
- Architects and technical leads need the trade-offs, quality goals, and dependencies that deserve a wider review.
- Operators and support engineers need deployment context, important failure paths, and links to operational procedures.
- Security and compliance reviewers need to locate relevant data flows, controls, and the people responsible for explaining them.
- New hires and business stakeholders need the purpose, vocabulary, major capabilities, and a way to find the right owner.
Consider an application that accepts customer repair requests and emails a confirmation. Support might ask whether a missing confirmation email means the request was lost. A developer needs to know where the acceptance state is stored. Those questions belong together, even though the readers won't inspect every implementation detail.
Put a short table of contents near the front and name the reader each detailed view serves. That makes the document navigable without maintaining a separate, potentially conflicting description for every team.
What to include in a software architecture document
Those reader questions help you decide what belongs in the document. Start with the facts that would change an engineering decision. The arc42 overview is a useful coverage check: it includes goals, constraints, context, structural and runtime views, decisions, quality requirements, risks, and a glossary. Tailor the depth to your system.
Purpose and scope. State what the system does, who uses it, and what falls outside its boundary. “Handles repair requests from submission through triage” is a clearer scope than “customer service platform.” Include the document owner and the release or environment it describes.
System context. Show users and external systems, with relationships labeled by purpose. Explain which team owns each boundary. If an external email provider sends confirmations, say so without pulling its internal infrastructure into your diagram.
Architectural drivers and constraints. Record the business and technical conditions that narrow the design: an existing integration contract, a hosting restriction, or the need to support a particular failure mode. Separate a requirement from an assumption that still needs checking.
Views of structure, behavior, deployment, and data. Explain responsibilities, important interactions, where the software runs, and which part owns each important record. Use the same names across views so readers can follow a request through them.
Cross-cutting concerns and quality requirements. Point to shared approaches for error handling, logging, access control, and similar concerns. Make quality expectations testable. arc42's quality scenarios connect a situation and response to measurable acceptance criteria. “Reliable intake” becomes a scenario about what happens when confirmation delivery fails.
Key decisions. Link the architecture decision records explaining choices that would be expensive or risky to reverse. Summarize the consequence here, keeping alternatives and rationale in the linked record.
Risks, technical debt, and glossary. Name known weaknesses and their owners. Define terms that might otherwise drift between teams, such as “submitted,” “accepted,” and “confirmed.” A missing answer should be visible as an open question, not concealed by an empty section.
Architecture views and viewpoints
The choice of views follows from the questions readers need to answer. A viewpoint sets conventions for describing a concern; a view applies those conventions to the system at hand. For example, a deployment viewpoint tells you what infrastructure and placement information to show. The resulting production deployment view shows where this application's instances run. The distinction comes from the architecture-description standard's terminology.
With those questions in mind, you can choose an approach for organizing the views. Two common options are:
In Kruchten's 4+1 model, the process view deals with concurrency and synchronization; the development view concerns the software's static organization. The “+1” scenarios help illustrate and exercise the other views. It is more than a sequence of zoom levels.
C4's diagram guidance lets you choose the levels that add value. A container means an application or data store, not necessarily a Docker container. A component diagram then looks inside one container. For a small application, context and container views may provide enough structural detail, supplemented by a runtime scenario.
Keep each diagram focused. A request sequence needs ordering; a deployment view needs environment and placement. Trying to encode both in an unlabeled arrow makes the reader guess. Our guide to architecture diagrams covers choosing a representation for the question you need to answer.
Software architecture document template (outline)
The outline below brings the sections and views together. Copy it into your team's working format. It's an original starter structure, with prompts that expose missing information rather than require pages of prose. Link detailed specifications where they already live.
You can paste the same outline into Google Docs or Word and apply heading styles. In a repository, keep it as Markdown alongside the diagram sources. Choose the location your reviewers will actually use, then identify one authoritative copy.
Before filling every heading, try answering one real change question with the outline. If the question is “can confirmation delivery move to another provider?”, context, interfaces, failure behavior, and the relevant decision need attention first. Unrelated implementation details can stay in their own reference pages.
Example: what each section looks like filled in
Let's fill in the outline for the fictional Repair Intake application introduced earlier. Customers submit repair requests, workshop staff triages them, and an external Mail Service sends confirmation emails. The sections below show how those responsibilities fit together.
Purpose and readers. Cover submission through staff triage. Exclude repair scheduling and payment. The intake team owns the document; support uses the failure scenario to answer missing-email questions.
Context. The customer submits a request and receives a request identifier. Staff read and update the triage state. Repair Intake asks Mail Service to send a confirmation. Mail Service is outside the system boundary.

System context for the fictional Repair Intake system. Mail Service sits outside the system boundary.
Structure. A browser-based Web App calls the Intake API, which stores requests in the Intake Database. Inside the API, the Submission Handler coordinates acceptance, the Triage Module handles staff updates, and the Mail Adapter calls Mail Service. These names remain consistent across the document and diagrams.

Level 1 shows the applications and data store. Level 2 shows the modules inside the Intake API, which runs as one application.
Runtime and data. On submission, the API records an accepted request and a pending confirmation state before attempting email delivery. A delivery failure leaves the accepted request visible to staff, with confirmation still pending. Support can arrange a resend through an operational procedure. The database owns the intake state; the email is a notification of that state.
Deployment. The Web App is served to the browser. The API runs in the team's application-hosting environment and connects to its managed database. A real document would name the environment, deployment definitions, and current resource references so an operator could verify this placement.
Constraint and decision. Decision D-1 keeps request acceptance independent of successful confirmation delivery. The reason is concrete: a customer shouldn't have to create another repair request because an email provider is unavailable. The cost is a pending-confirmation state and an operational resend procedure that someone must own.
Quality scenario. With Mail Service unavailable, submit a valid request and inspect both the customer result and the staff view. Acceptance requires a returned request identifier, the corresponding accepted record, and a pending confirmation state. Link the validation result for the release under review.
Risk and glossary. Risk R-1 is a growing backlog of pending confirmations; the intake team owns a follow-up to define monitoring and resend handling. “Accepted” means the request is recorded for triage. “Confirmed” refers to notification status, not completion of the repair.
The connections matter as much as the sections. D-1 explains the failure path, the quality scenario checks its intended outcome, and R-1 records the work that choice creates.
Best practices for writing and maintaining it
As the system changes, keep checking that those connections still hold. Can a new engineer locate the component they need to change? Can an operator follow the failure path without asking the original author? If neither reader can use a paragraph, shorten it or move the detail elsewhere.
- Keep changes reviewable. Version the document and diagram sources. With a docs-as-code workflow, include the affected documentation in the implementation review. A shared-document workflow needs the same explicit owner and review step.
- Keep decisions linked. Refer to D-1 from the runtime description, rather than copying its rationale into several pages. When a decision changes, update the references and clearly distinguish the superseded choice.
- Review on change and on a schedule. A new external dependency, deployment change, ownership transfer, or incident finding should trigger a documentation check. Set a recurring review date to catch changes that escaped those triggers.
- Separate proposed and observed state. Label a planned migration as planned until its implementation has been checked. Record what was checked and where the supporting evidence lives.
Architecture as code gives teams a way to maintain machine-readable architecture artifacts alongside their development workflow. The practical discipline still matters: rendering a diagram successfully doesn't establish that its inputs describe the deployed system.
Catio's Architecture Knowledge Base records architectural facts with their source, observation time, and confidence. That gives reviewers a way to investigate a stale relationship while keeping the document's explanation focused on why it matters.
Keeping the document true when AI agents change the code
The same review is needed when a coding agent makes the change. If an agent replaces the Mail Adapter, the documentation change extends beyond a renamed module. Review the external contract, failure scenario, deployment configuration, and D-1's assumptions. An agent working from accessible code can help prepare that update, but the reviewer still needs the context outside its working material.
Catio brings architecture context into coding tools through its MCP. The workspace must contain the architecture and context you want the agent to use. A useful workflow for this example is:
- Retrieve the workspace requirements and architecture context.
- Inspect the inventory components and relationships around Repair Intake.
- Ask Archie about the proposed provider change and relevant designs or constraints.
- Compare that context with the implementation, then propose focused changes to the document and linked decision.
The MCP tools expose those inventory, context, and Archie capabilities. Context search also returns references that can be resolved into source-document and section details, helping a reviewer follow a statement back to its basis.
The interface can create and update blueprints as well. Its read and write limits distinguish those operations from inventory and workspace context, which are read-only through MCP. Keep a proposed design separate from a verified description of the deployed system.
Conclusion
A useful software architecture document connects the system's structure and behavior to the decisions that shaped them. Keep its views consistent, name an owner, and review affected sections when the implementation changes. That makes the document a practical aid to the next design discussion or onboarding question.
The document remains the explanation you hand to a colleague. Use current architecture evidence to check it, and retain the decisions that evidence alone cannot explain. When you're ready to connect that review to your own estate, Catio's getting-started guide is the next step.
FAQ
How long should a software architecture document be?
Long enough to answer its readers' important questions without duplicating reference material. Start with scope, context, key structure, behavior, and decisions. Expand a section when a real review or onboarding question exposes a gap.
How is it different from a design document?
Teams use the names differently. A useful distinction is that the architecture document describes the system across changes, while a technical design document proposes a bounded change. Link an accepted design from the system document and update the affected views after implementation.
How is it different from an ADR?
An architecture decision record captures a significant choice, its context, and consequences. The software architecture document connects those decisions to the system's views and current responsibilities. Keep the decision history in the ADR and link it where readers need the rationale.
Who owns the document?
Name an accountable team or technical lead, with contributors responsible for the parts they change. Ownership includes arranging reviews and resolving inconsistencies, not writing every paragraph personally. Put that responsibility beside the document's scope and last-checked date.

