Skip to content

Example Lending: a complete architecture repository

Real architecture repositories are confidential, so most people never see a complete one. Templates show the headings; blog posts show one diagram. What’s missing is a full set of artifacts for one system, consistent with each other, where a requirement leads to a decision, the decision shows up in a diagram, the diagram drives the threat model, and the runbook refers to the same services.

This section is that repository, for Example Lending, the fictional lender from the TOGAF worked example. Every page here uses the same company, people, services, numbers and decisions.

Aspect Aspect
Business US consumer lender offering unsecured personal loans of $2,000 to $35,000, online and through about 40 partner branches
Size About 600 staff; 45 people in technology across a journey team, a decisioning team, a payments team and a small platform team
Volumes About 40,000 applications and 9,000 funded loans a month, expected to reach 60,000 applications within two years. Mondays and the days after marketing campaigns run at up to three times the average
The problem A loan took five days from application to funding. Competitors decide in minutes and fund next day
The goal Apply in ten minutes, decide instantly in most cases, fund the next business day, with every decision explainable and auditable
Regulation that shapes the design Equal Credit Opportunity Act and Regulation B (adverse action reasons, record retention), Fair Credit Reporting Act, Nacha operating rules for ACH, GLBA safeguards for customer data, state lending licenses
Architecture team A lead architect and two solution architects; a fortnightly design review with security and operations
The repository, and how each artifact feeds the next1. Every decision record names the requirements and quality scenarios it satisfies. 2. Decisions show up in the architecture views, so the diagrams explain themselves. 3. The views drive the threat model, the test strategy and the operational runbooks. Visionprinciples P1 to P8 RequirementsR-01 to R-12 Quality scenariosQS-01 to QS-10 Migration planthree stages, cutover Decision recordsADR-001 to ADR-016 Architecture viewsC4 levels 1 to 3OperationsSLOs, runbooks Test strategyper boundary Threat modelSTRIDE, 14 threats123
The repository, and how each artifact feeds the next Requirements and quality scenarios drive decisions; decisions shape the views; the views drive security, testing and operations.
  1. Every decision record names the requirements and quality scenarios it satisfies.
  2. Decisions show up in the architecture views, so the diagrams explain themselves.
  3. The views drive the threat model, the test strategy and the operational runbooks.
Artifact What you’ll find Practice it applies
Strategy and vision Principles, stakeholders, capability map, baseline and target, roadmap, governance TOGAF ADM
Architecture views C4 system context, containers, components of the decision service, deployment C4 model
Decision log 16 architecture decision records, from hosting to the rejected postcode feature Trade-off analysis
Quality scenarios and requirements Requirements register and ten measurable quality attribute scenarios Quality attributes
Data and events Data ownership, entity model, event catalog with schemas, retention Event-driven architecture
Threat model Data flow diagram, trust boundaries, STRIDE table, mitigations Threat modeling
Test strategy Test portfolio by boundary, contract tests, test data, performance tests Test strategy
Operations SLOs and error budgets, alerting, two runbooks, a blameless postmortem SLOs, incidents
Migration and cutover Strangler plan, parallel run, data migration, cutover runbook and rollback Zero-downtime changes
Three years later and the decision review The same company in 2029: what changed, every 2026 decision’s prediction against what happened, and six new decisions Architecture decision records

Copy the structure, not the content. Each page shows what a complete artifact looks like at a mid-size company: enough detail to be useful, short enough to be kept up to date. The free starter kit templates give you the blank versions, and the AI prompt library helps draft them from your own material.

Written and edited by Abhinav Taduka, enterprise software architect.