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.
The company in one page
Section titled “The company in one page”| 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 |
How the artifacts connect
Section titled “How the artifacts connect”- Every decision record names the requirements and quality scenarios it satisfies.
- Decisions show up in the architecture views, so the diagrams explain themselves.
- The views drive the threat model, the test strategy and the operational runbooks.
What’s in the repository
Section titled “What’s in the repository”| 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 |
Read it by role
Section titled “Read it by role”- Solution and enterprise architects: start with the strategy, then the decision log and views.
- QA and test architects: the quality scenarios and test strategy.
- DBAs and data architects: data and events and the data migration in migration and cutover.
- SRE and operations: operations and the deployment view in architecture views.
- Security architects: the threat model.
- BAs, PMs and delivery leads: the requirements and migration plan.
Using it at your organization
Section titled “Using it at your organization”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.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.