The phrase "use cases by part of an architecture description" points to a specific modeling problem: when you document a software system's architecture, you need to know which use cases belong in which part of the description, how those use cases interact, and how the architecture documentation maps each use case to the design elements that realize it. The short answer is that use cases are not a single section of an architecture description — they appear in multiple parts, functioning as user goals at the context level, as behavior specifications at the component level, and as traceable scenarios that connect requirements to structural elements. Understanding which use cases belong where, and why, is essential for producing documentation that architects, developers, and stakeholders can actually use.

What "Architecture Description" Means in This Context

An architecture description is the set of artifacts that document a system's architecture: its structure (components, connectors, configurations), its behavior (how parts collaborate to fulfill requirements), and the rationale behind design decisions. Standards such as ISO/IEC/IEEE 42010 frame architecture descriptions around viewpoints and views — each viewpoint addresses specific stakeholder concerns, and each view is a representation of the system from that perspective.

Use cases fit into this framework differently depending on which viewpoint you are populating. They are not confined to a single "use case section." Instead, they serve as a thread that can appear in several views, each time serving a different purpose. The confusion the search query reveals is real: practitioners often wonder whether use cases belong in a functional view, a behavior view, a context diagram, or a separate requirements document, and whether each part of the architecture description needs its own use cases or whether a single use-case model suffices for the whole description.

The answer depends on what the architecture description is for, who reads each part, and what level of detail that part is meant to convey.

Use Cases at the Context Level: Defining System Boundaries

The first place use cases appear is at the context or scope level, where the architecture description defines what the system is and what lies outside it. Here, use cases identify external actors — users, other systems, devices — and the goals those actors pursue by interacting with the system. A context-level use case diagram or list establishes the system boundary: these are the services the system offers to its environment.

At this level, use cases are deliberately coarse. They answer questions such as: Who uses this system? What do they want to accomplish? What external systems does it integrate with, and for what purpose? A banking platform's context view might list "Withdraw cash," "Transfer funds," and "Check balance" as use cases performed by a customer actor, while "Settle transactions" is a use case involving a payment-network actor.

These context-level use cases serve architecture stakeholders who need to understand scope without wading into internal design. They are also the anchor for traceability: every more detailed use case, and every architectural element that supports behavior, should trace back to one of these externally visible goals. Without this level, an architecture description has no defensible answer to "What does this system do for its users?"

Use Cases in Functional and Behavior Views: Specifying How the System Responds

The functional or behavior view of an architecture description takes the context-level use cases and elaborates them into specifications of how the system responds to stimuli. This is where use cases become detailed: preconditions, main success scenarios, alternate flows, exception handling, and postconditions.

The key architectural concern at this level is not just listing steps but identifying which parts of the architecture participate in each step. A use case specification that says "the system validates the request" is architecturally incomplete unless the description also indicates which component performs validation, what interface it uses, and what happens when validation fails. In this sense, the behavior view uses use cases as organizing units for describing collaboration: the sequence of interactions among components that together fulfill a user goal.

Different architecture description approaches handle this differently. In a UML-based description, use case realizations — often expressed through sequence diagrams or communication diagrams — show how the use case is realized by collaborating objects or components. In a component-and-connector view, use cases may be expressed as traces or scenarios that exercise specific connectors and interfaces. In a service-oriented architecture, each use case may map to a choreography of service invocations.

The important distinction is this: the context view says what goal exists; the behavior view says which architectural elements collaborate to achieve it and in what order. Mixing these together in one section produces documentation that either overwhelms scope-level readers or starves designers of detail. Separating them, with explicit traceability between the two, is the cleaner practice.

Use Cases as Scenarios for Quality-Attribute Analysis

A third distinct role for use cases appears in architecture evaluation and in the documentation of quality attributes. Here, use cases are used as concrete scenarios to test whether the architecture meets non-functional requirements: performance, availability, security, modifiability, and so on.

This is the practice that architecture-evaluation methods such as ATAM (Architecture Tradeoff Analysis Method) rely on. A quality-attribute scenario is essentially a specialized use case: a stimulus arrives, the system responds, and the response is measured. For example, "A user submits a search query; the system returns results within two seconds under peak load" is a use case framed as a quality scenario. It belongs in the part of the architecture description that documents quality attributes and the tactics chosen to achieve them — not in the functional behavior view, where the concern is correctness of interaction rather than measurable response.

Practitioners sometimes overlook this placement and bury performance or security scenarios in the same section as functional use cases. That conflates two different stakeholder concerns: functional completeness versus quality satisfaction. The architecture description is more useful when quality scenarios live alongside the quality-attribute discussion, cross-referenced to the functional use cases they stress.

Use Cases in Component and Interface Specifications

At a finer level of granularity, use cases inform the specification of individual components and their interfaces. When a component's interface is documented, the operations it exposes should be justified by the use cases that exercise them. A component that claims to support "order management" but whose interface methods cannot be traced to any use case is either over-engineered or under-documented.

Similarly, component-level use cases — sometimes called sub-function use cases or internal use cases — describe how a component participates in the larger system use cases. A payment-processing component may have internal use cases such as "Authorize transaction" and "Reverse authorization" that are not visible to end users but are essential to the architecture's behavioral description. These belong in the component's specification, not in the system context view, because they address a different reader: the developer or integrator working on that component.

The distinction matters for avoiding a common error: treating every internal interaction as a system-level use case. If a use case is not directly observable by or meaningful to an external actor, it is an internal behavior, and it belongs in the structural or behavioral detail of the relevant part, not in the scope-defining list.

Use Cases in Deployment and Operational Views

Deployment views describe how software components are assigned to hardware nodes and how those nodes communicate. Use cases appear here as operational scenarios: what happens when a user request arrives at a specific node, how load is distributed, what happens during failover, and how operational procedures (backup, upgrade, disaster recovery) affect running use cases.

An operational use case might describe "a customer places an order during a rolling deployment" — a scenario that stresses the deployment view's concern with availability and continuity. These use cases do not replace the functional use cases; they contextualize them against the runtime environment. Placing them in the deployment view keeps the concern visible to operations stakeholders, who may not read the functional behavior sections at all.

A Practical Mapping Table

The relationships above are easier to hold together in a compact overview. The table below summarizes where each kind of use case belongs and what it accomplishes there.

Part of the architecture description Kind of use case Purpose Primary readers
Context / scope view System-level use cases with external actors Define boundaries and services offered Stakeholders, architects, sponsors
Functional / behavior view Detailed use case specifications and realizations Show component collaboration and interaction order Architects, designers, developers
Quality-attribute view Quality-attribute scenarios framed as use cases Evaluate whether the architecture meets non-functional goals Architects, evaluators, testers
Component specifications Component-level and internal use cases Justify interfaces and internal behavior Developers, integrators
Deployment / operational view Operational scenarios Test runtime behavior, failover, and procedures Operations, SRE, infrastructure teams

This mapping is a guide, not a law. Small systems may merge context and functional use cases into one section. Agile teams may keep lightweight use cases in a backlog rather than a formal architecture document. The principle that should survive simplification is this: each part of the architecture description has a distinct stakeholder concern, and use cases should be scoped and written to serve the concern of the part in which they appear.

Why Placement Matters: Traceability and Completeness

The reason to be deliberate about placing use cases is traceability. An architecture description that puts all use cases in one undifferentiated list makes it hard to verify that every external goal is supported by internal behavior, that every component interface serves a legitimate purpose, and that quality scenarios have been considered.

When use cases are distributed by part, each part can be checked for completeness against its own obligations. The context view is complete when every external actor's goals are listed. The behavior view is complete when every context-level use case has a realization. The quality view is complete when each relevant quality attribute has scenarios that stress the architecture. The component view is complete when each exposed interface operation traces to a use case it supports. This kind of per-part completeness checking is far more tractable than trying to audit a monolithic use-case catalog.

Traceability also runs in the other direction: from design decisions back to the use cases they serve. An architect who proposes a caching layer should be able to point to the quality scenario or functional use case that justifies it. If the use case is buried in the wrong part of the description, that justification becomes harder to find and easier to omit.

Common Confusions and How to Resolve Them

Several recurring confusions explain why the question of use-case placement keeps arising.

The first is treating "use case" as synonymous with "requirement." Use cases capture goals and interactions; requirements include constraints, quality attributes, and business rules that may not appear in any use case. An architecture description needs both, and use cases belong where they help explain behavior and structure, not as a substitute for a requirements specification.

The second is assuming that use cases must appear only once. In practice, the same underlying goal may appear at the context level as a brief bullet and at the behavior level as a detailed specification, connected by traceability. This duplication is intentional and useful, not a violation of the single-source principle, because each appearance serves a different reader.

The third is confusing use cases with user stories. User stories are lightweight requirement statements; use cases are behavioral specifications with scenarios and actors. A user story may generate several use cases, and a use case may satisfy several user stories. The architecture description typically references use cases because they carry more behavioral detail than stories, though agile teams often keep the formal use-case detail lighter and rely on tests and acceptance criteria.

The fourth is thinking that internal component interactions are themselves system use cases. As noted, an interaction that no external actor can observe is internal behavior. It may be documented as a component-level use case, but it does not belong in the system context list.

How Much Use-Case Detail Each Part Needs

Detail should follow the reader. Context-level use cases can be one or two sentences per goal. Behavior-level use cases need main and alternate flows, but the depth should match the architectural significance of the interaction — a routine data lookup may need only a brief realization, while a complex transaction with compensation logic deserves a full specification. Quality scenarios need enough precision to be measurable, but not a full step-by-step script. Component-level use cases can be terse if the interface contract already supplies the detail.

A useful test is to ask what decision the reader of that part is trying to make. A stakeholder reviewing scope needs to know whether a goal is in or out. A designer needs to know which components must collaborate and in what order. An evaluator needs to know what stimulus to apply and what response threshold matters. Writing to the decision keeps each part appropriately detailed and prevents the architecture description from bloating into an unreadable hybrid of requirements, design, and operations manual.

Conclusion

Use cases are not a single section of an architecture description; they are a modeling device that appears in multiple parts, each time scoped to that part's stakeholder concern. At the context level they define boundaries and external goals. In behavior views they specify component collaboration and interaction order. In quality-attribute views they become measurable scenarios. In component specifications they justify interfaces and internal behavior. In deployment views they describe operational realities. The value of placing them deliberately is traceability and per-part completeness, and the most common mistakes are conflating these roles or omitting the traceability links between them.