Architecture Documentation and Review

An architecture as a set of connected artifacts, Architecture Decision Records, a review checklist and a quality attribute review.

  • Intermediate to advanced
  • About 15 minutes
  • Includes an exercise and a knowledge check

The concept An architecture is a set of connected artifacts

A single diagram is not enough. A reviewable enterprise architecture has thirteen artifacts, and they must all describe the same system. If the component diagram says one service owns a capability but the deployment diagram places it elsewhere, resolve that before anyone else finds it.

At the top, a wide photo of an old construction blueprint for a water supply, one sheet of a set. Below, the Apex architecture package as thirteen numbered sheets: 01 system context, 02 boundary and ownership, 03 logical components, 04 API contracts, 05 event schemas, 06 data model, 07 sequence diagrams, 08 trust boundaries, 09 deployment topology, 10 failure and recovery, 11 observability, 12 capacity and cost, 13 decision records. A red dashed line joins sheets 03 and 09 with a note: they disagree on who owns matching; resolve it before the review. A reviewer who finds one contradiction stops trusting the rest.
A set of drawings, one system. Every sheet must agree with the others.

Record the why Architecture Decision Records

An Architecture Decision Record (ADR) captures one important design choice with a consistent structure: title, status, context, decision drivers, options considered, decision, rationale, consequences, risks and review conditions.

From need to proof Trace every component

Every component in the architecture must trace forward to the work and the proof. If a component has no requirement, it should not exist. If it has no test or acceptance criterion, nobody can show it works:

ComponentBusiness requirementModule 07 taskTestAcceptance criterion
Payment ingestion APIAccept every provider payment onceController, adapters, signature checkContract tests; signature negative testsValid notifications get 202; invalid get 400 or 401; nothing stored on failure
Idempotency and outboxNo duplicate financial effectsUnique constraint, payload hash, outbox, consumer dedup20 concurrent duplicates; outbox redeliveryOne payment and one business effect per provider transaction
Settlement ingestionEvery bank file processed once, with totals provenBatch tracking, strict parsing, file checksum tableTruncated, malformed and re-sent filesTotals reconcile, or the batch shows the unexplained amount
Reconciliation engineExplainable, approved matchingVersioned rules, uniqueness indexesAmbiguous and concurrent match testsEvery result shows its rule version and evidence
Exception workflowControlled manual resolutionStates, maker-checker, auditSelf-approval and double-approval negative testsNo financial change without a different approver and an audit record
ObservabilityFinance sees problems before borrowers doBusiness metrics, alerts, tracesAlert on rejected rows and missing filesAn alert within 15 minutes, with a correlation ID
ADR: asynchronous payment processing
ContextProviders may send repeated notifications. Reconciliation can take longer than the request. The customer needs reliable ingestion and controlled retries.
Options1. Do the whole workflow synchronously. 2. Persist the request and process it asynchronously. 3. Scheduled batch processing.
DecisionDurable asynchronous processing after validating and persisting the request.
RationaleSeparates the external acknowledgement from longer reconciliation and allows independent processing and recovery.
ConsequencesEventual consistency; event monitoring; idempotent consumers; retry and replay controls; clear processing statuses.
Review conditionsRevisit if the customer needs immediate final results or the workload changes substantially.

Before the meeting The review checklist

  • Are system boundaries clear and responsibilities explicit?
  • Are external integrations defined and API contracts documented?
  • Are data ownership rules clear?
  • Is duplicate processing controlled and are financial effects protected?
  • Are security boundaries visible and failure paths documented?
  • Are recovery procedures defined and business metrics observable?
  • Are capacity assumptions documented and cost trade-offs understood?
  • Are the major decisions recorded?

Judge the whole Quality attribute review

Quality attributeArchitecture question
ReliabilityCan the platform recover from component failures?
SecurityCan users and services access only authorized information?
PerformanceCan it process the expected peak workload?
ScalabilityCan capacity grow with demand?
MaintainabilityCan teams change capabilities safely?
AvailabilityAre critical workflows available when needed?
AuditabilityCan financial decisions be traced?
OperabilityCan support teams detect and resolve incidents?
Cost efficiencyIs the solution economically sustainable?

Practice Prepare the review package

Practical exercise

Exercise 11: the enterprise architecture review package

Assemble the artifacts from Lessons 01 to 10 and review them as four different readers would.

  1. Review as the customer CTO.
  2. Review as the finance operations director.
  3. Review as the security architect.
  4. Review as the platform engineering lead.
  5. Record the unresolved questions and assumptions.
Show sample review notes
  • CTO: why not a commercial product? Link to the Module 05 build-or-buy ADR.
  • Finance director: how long before a late settlement shows on the dashboard?
  • Security architect: who can start a replay, and is it audited?
  • Platform lead: who is on call for the settlement file alert?
  • Open: peak throughput, RTO and RPO, retention period, maximum reconciliation delay.

2 questions

Check your understanding

1. The component diagram and the deployment diagram disagree about who owns matching. What do you do?
2. Which part of an ADR is most useful a year later?
Answer every question to submit.

What you can do now

  • Assemble a consistent architecture package.
  • Write an Architecture Decision Record.
  • Run a review checklist and a quality attribute review.